ajax json file get in php post code example
Example: php return json data
header('Content-Type: application/json');
$colors = array("red","blue","green");
echo json_encode($colors);
header('Content-Type: application/json');
$colors = array("red","blue","green");
echo json_encode($colors);