Package Exports
- @cuties/json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cuties/json) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 |