npm.io
0.3.1 • Published 9 years ago

liquid-json

Licence
Apache-2.0
Version
0.3.1
Deps
0
Vulns
0
Weekly
0
Stars
6

liquid-json

Implementation of JSON which ignores BOM and shows more detailed error messages on parse failures.

usage

$ npm install liquid-json --save;
var LJSON = require('liquid-json');
LJSON.parse('{ "hello": "world" }');
LJSON.stringify({ hello: 'world' });

LJSON.parse accepts reviver function as second parameter and LJSON.stringify accepts standard JSON parameters. All errors raised from this module has error name as JSONError.

attributions

Keywords