jsonf

A JSON formatter

npm install jsonf
8 downloads in the last month

jsonf

A json formatter, inspired by jsonlint

Install :

npm install jsonf

Example :

var jsonf = require('jsonf');
var data = '{"encoding": "utf-8", "outputDirName": "./", "ignore": [ "./_lilt.json" ]}'
jsonf(data);

output:

{
    "encoding": "utf-8",
    "outputDirName": "./",
    "ignore": [
         "./_lilt.json"
     ]
}

MIT License

npm loves you