title: Issue with JSON parsing
body: <p>I am a complete noob with JSON parsing in jQuery. Thought I got the response... My data is in this form:</p>
  
  <pre><code>Array(
  [1]=&gt;abc,
  [3]=&gt;mango,
  [4]=&gt;apple,
  [5]=&gt;fruits
  )
  </code></pre>
  
  <p>In this way I want this list to appear as an autocomplete list. I am using.</p>
  
  <pre><code>    jQuery("#name").autocomplete( '&lt;?php echo HTTP_PATH.'/songs/sss'; ?&gt;', {
      multiple: true,
      mustMatch: true,        
      matchContains: true,
      autoFill: false,
      dataType: "json",
      parse: function(data) {
              return jQuery.map(data, function(item) {
                  return { data: item, value: item.label, result: item.label};
              });
          },
          formatItem: function(item) {
              return item.label;
          },
          formatResult: function(item) {
              return item.id;
          },
          formatMatch: function(item) {
              return item.label;
          }
  
  });
  </code></pre>
  
  <p>I want the value when it shows list, i.e. the label from my data. When I select a label then it should show the label. But at the time of submission it should actually submit the key.
  I mean I want it to work as select box of HTML.</p>
  
  <p>Returned JSON</p>
  
  <pre><code> [{"id":1,"label":"Mehdi Hassan"},{"id":2,"label":"Jagjit Singh"},{"id":3,"label":"Suresh Vadekar"}]
  </code></pre>