UNPKG

@apistudio/apim-cli

Version:

CLI for API Management Products

24 lines (16 loc) 576 B
# liquid-json Implementation of `JSON` which ignores BOM and shows more detailed error messages on parse failures. ## usage ```terminal $ npm install liquid-json --save; ``` ```javascript 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 - https://github.com/rlidwka/jju - https://github.com/ariya/esprima