how to rerunt json with html php 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);