SyntaxFix
Write A Post
Hire A Developer
Questions
You can return json in PHP this way:
header('Content-Type: application/json'); echo json_encode(array('foo' => 'bar')); exit;