PHP (processing.php):
$responce["x"] = 0;
$responce["y"] = [1, 3];
echo json_encode($responce);
javascript:
$.get("processing.php", function(data){
alert("Data: " + data)
});
Output (alert):
Data: {"x":0,"y":["1","3"]}
I need to access the variable x, and the array y in javascript ?!!