In fact I dont like JSON-RPC. Its unnecessarily un-RESTful, and modelled too closely on XML-RPC.contenttypeapplication/json, bodydumps(dict(resultresult For example if I have an ajax handler function on ready state 4 which looks like so.Content-Type: application/json is just content header, the content header is just information about type of returned data, ex::JSON,image(png,jpg,etc),html. The JSON encoding also supports file uploads. The values of files are themselves structured as objects and contain a type field indicating the MIME type, a name field containing the file name, and a body field with the files content as base64. We set the content-type of our request to application/json.Recent Posts. Examples of how Wikileaks is biased. Reading an email inbox with PHP IMAP. Handling Ajax errors with jQuery.