title: Array (json) not passing into jqGrid's editoptions parameters
body: <p>I've been trying to pass an array from a global variable (<code>codata</code>) to an option array of <code>editoptions</code> (jqGrid). My code stands as follows:</p>
  
  <p>--------- countries_list.php throws the following json array -----------</p>
  
  <pre><code>["ABU","AD","AE","AF" .... "ZA","ZM","ZW"]
  </code></pre>
  
  <p>--------- PHP script with jqGrid Code ----------</p>
  
  <pre><code>jQuery(document).ready(function(){
  
              var codata = new Array();
  
              $.getJSON('countries_list.php', function(list){
                  $.each(list, function(val) {
                      codata.push("'"+val+"'");
                      # --- Here alert() displays 'codata' with all the elements ---
                  });
              });
  
              $("#datatable").jqGrid({
                   ......
                   // some code until colMode specs
                   ......
                   {   name:'guco',
                          index:'guco',
                          edittype:'select',
                          width:90,
                          editable: true,
                          editoptions: {
                              formatter:'select',
                              value: codata # --- array is not passed, it comes empty ---
                          },
                          sortable: true,
                          resizable: false
                      },
          .....
  </code></pre>
  
  <p>--------- PHP script with jqGrid Code ----------</p>
  
  <p>Any hint how to get this fixed?, thanx in advance.</p>
  
  <p>Mario Benitez.-</p>