Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
example.json
index.js
json2.js
package.json

README.md

Pretty-Print JSON

The opposite of json-minify; For all the times you want to add readable whitespace.

{"foo":"bar"}

becomes

{
    "foo": "bar"
}

Usage

json-prettify /path/to/data.json

curl -s http://foobar3000.com/echo/echo.json | json-prettify

wget -qO- http://foobar3000.com/echo/echo.json | json-prettify

Installation

npm install -g json-prettify