jsonpretty

Yet another JSON pretty printer

npm install jsonpretty
5 downloads in the last week
19 downloads in the last month

jsonpretty

Yet another JSON pretty printer

Installation

Install via npm:

$ npm install jsonpretty

Usage

Take some JSON object and call like so:

var jsonpretty = require('jsonpretty');
var obj = { name: 'Bob', car: { make: 'Toyota', model: 'Camry' } };
console.log(jsonpretty(obj));

This will output:

{
  "name": "Bob",
  "car": {
    "make": "Toyota",
    "model": "Camry"
  }
}
npm loves you