$data = array("key0" => "value0", "key1" => "value1");
header('Content-type:application/json;charset=utf-8');
echo json_encode($data);