tsl-core-json
v0.3.0
Published
TypeScript Library for JSON
Downloads
2
Readme
TypeScript Library for JSON
This is a TypeScript-optimized library to handle JSON.
Installation
npm install tsl-core-json
API
JSON.extract
Extracts a path in a JSON object and returns the found portion.
Parameters:
json:
JSON
- JSON object to extract from.path:
string
- Path in the JSON object to extract.Array<(string|RegExp)>
- Path selectors for multiple JSON objects to extract.
Returns:
JSON.Type
- JSON object or primitive, if path was found.undefined
- Void, if path was not found.