|IANA has officially registered a MIME type for JSON: application/json.|
What this means is that if you return JSON data from a web service, then you should set your Content-type header to application/json.
PHP: header("Content-type: application/json");
Perl: print header(-type => 'application/json');
Most anything else: print "Content-type: application/json\r\n";
|comments: Leave a comment|