Simon Priet e69a613a37 feat: Created a mini nodeJS server with NewMan for testing without PostMan GUI.
This will mimic a run in a CD/CI environment or docker container.
2021-09-08 14:01:19 +02:00

24 lines
576 B
Markdown

# 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