Add application/json MIME type when returning JSON

Added a call to PHP header('Content-type: application/json') so that Response header reflects the response JSON content