cutie-json
Cutie extension for JSON in js. It's based on the Async Tree Pattern.
Examples
You can find examples of using this library in the test directory.
Install
npm install @cuties/json
Run test
npm test
Run build
npm run build
Usage
const {
// Here needed async objects from the table below
} = require('@cuties/json');
For more information about parameters in the async objects visit docs.
Async Object | Async/sync call | Parameters(default value/description) | Representation result |
---|---|---|---|
ParsedJSON |
JSON.parse |
string |
json |
PrettyStringifiedJSON |
sync call from json-stringify-pretty-compact module |
json |
string |
StringifiedJSON |
JSON.stringify |
json |
string |
Value |
eval('json' + '.' + path) |
json, path |
value |