0.1.2 • Published 9 years ago

cleanjson v0.1.2

Weekly downloads
12
License
-
Repository
github
Last release
9 years ago

Installation

$ npm install -g cleanjson

CLI Usage

  1. Publish your "dirty" JSON at some URL using services such as http://hastebin.com, http://gist.github.com or http://cl.ly
  2. Acquire a URL that points to "raw" JSON, such as: http://goo.gl/7IiVZ
  3. Run a command such as:

    $ curl -Ls http://goo.gl/7IiVZ | cleanjson
  4. Enjoy

Using as a Module

var cj = require('cleanjson');

var input = '{"a": 13123, "b": "13123", "ccc": 112}';

cj.clean(input, function(err, cleanJSON) {
  
  console.log(cleanJSON);
  process.exit(0);  
  
});

will produce following output:

{
  "a": 13123
, "b": "13123"
, "ccc": 112
}
0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

11 years ago