I have a php script which produces the JSON object.
In my jquery I am using this code to call the php script.
$.getJSON("/st/std.php",
function(data){
alert(data);
$("myspan").text(data);
}
);
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
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.
[{"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"}}