Returning JSON from a PHP Script - Create Rest API in Php
While you're usually fine without it, you can and should set the Content-Type...
Tags: javascript, json, sh20raj, api