Get data as JSON from a PHP file.