I am building a web site and I use a url which returns a JSON response, like:
{name:mark; status:ok}
I would like to obtain the name, using onl
$.getJSON("URL", function(json) { alert("JSON Data: " + json.name); });
I guess this will work for you.
If you want to Pass parameters then here is code
$.getJSON("URL", { name: "John", time: "2pm" }, function(json) { alert("JSON Data: " + json.name); });
Refer link