I am trying to use javascript to call a php script which then will return multiple variables back to my javascript so I can manipulate them.
This is my JS.
convert json to object
jQuery.ajax({ type: "GET", url: 'test.php', dataType: "json", success: function(response) { item=JSON.parse(response); console.log(item); alert(item.num1); } });