Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

..
Octocat-spinner-32 README.md
Octocat-spinner-32 example.json
Octocat-spinner-32 index.js
Octocat-spinner-32 json2.js
Octocat-spinner-32 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
Something went wrong with that request. Please try again.