JSON Pretty Printer for JavaScript
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md initial commit Jan 21, 2011
json-format.js Upped version Mar 8, 2012

README.md

json-format

JSON Pretty Printer for JavaScript

I didn't like the "pretty" formatting of JSON.stringify() so I put this together. It is loosely based on a comment at php.net.

Usage

var formattedJSONString = JSONFormat( someJSONString );