Returning JSON from a PHP Script
<?php $data = array(); header('Content-Type: application/json'); echo json_encode($data); exit;