title: $.getJson() Problem and returning an undefined value
body: <p>I have a php script which produces the JSON object.</p>
  
  <p>In my jquery I am using this code to call the php script.</p>
  
  <pre><code>  $.getJSON("/st/std.php",
     function(data){
      alert(data);
         $("myspan").text(data);
     }
    );
  </code></pre>
  
  <p>How Do i get the Data from THE JSON  Encoded in php File .In the form Iam entering some code which will perform the ajax lookup to a php file This is the Json Object iam producing it in php</p>
  
  <p>Suppose if we input the "AAA" in the textbox it should fetch "AAA-ANAA".It should search the JSOn encoded object and fetch the label.</p>
  
  <pre><code>[{"label":"AAA-ANAA (PF)","value":"AAA"},
  {"label":"AAB-ARRABURY (AU)","value":"AAB"},
  {"label":"AAC-AL ARISH (EG)","value":"AAC"},
  {"label":"AAE-ANNABA (DZ)","value":"AAE"}}
  </code></pre>