$.getJSON( "test.php", function(data){ ... code should be here? } )
data contains this code:
{ "name": "Mary", "surname": "Carey" }
I want to create these variables:
theName = name from json; theSurname = surname from json;
What is the true syntax for this task?
Thanks.
James source share