Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JSON Pretty Printer for JavaScript
JavaScript
branch: master

This branch is even with phoboslab:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
json-format.js

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 );
Something went wrong with that request. Please try again.