I have a simple ajax call:
function init() { $.ajax({ url: \"./myFolder/user.php\", data: { action: \"init\" }, t
On user.php page you need to do :-
user.php
function init() { $arr = array( array( "region" => "valore", "price" => "valore2" ), array( "region" => "valore", "price" => "valore2" ), array( "region" => "valore", "price" => "valore2" ) ); echo json_encode($arr); }