title: How to separate json response in two variables?
body: <p>Right now json response looks like </p>
  
  <pre><code>["AG","ANTIGUA AND BARBUDA","AU","AUSTRALIA","BR","BRAZIL","CA","CANADA"] 
  </code></pre>
  
  <p>i can make it </p>
  
  <pre><code>["AG,ANTIGUA AND BARBUDA","AU,AUSTRALIA","BR,BRAZIL","CA,CANADA"]
  </code></pre>
  
  <p>if thas easier to work with or any other style.</p>
  
  <p>what i need is to separate it into two variables one for county code other for country name</p>
  
  <pre><code>   ...success: function( json ) {
      $.each(json, function(i, value) {
            $('#country').append($('&lt;option&gt;').text(value).attr('value', value));
      };  
        });
  </code></pre>
  
  <p>now same variable goes in value and name of option i need to put country code in option and country name in variable.</p>