json-indent

A wrapper around the simplejson library for indenting JSON strings.

Bookmarklet (drag to toolbar)

json-indent

GET requests

The url parameter can be used to refer to a page of JSON content to be indented. The value must be URL encoded.

Alternatively, the content parameter can be used to include the JSON in the GET request itself.

POST requests

POST requests to /indent can be either multipart/form-data or application/x-www-form-urlencoded encoded. If a key named content is present then the value will be indented. If not, the entire request body will be indented.

Demonstration using POST

Copyright DeWitt Clinton - Source - Discuss