This is a TypeScript-optimized library to handle JSON.
npm install tsl-core-jsonExtracts a path in a JSON object and returns the found portion.
-
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.
-
-
JSON.Type- JSON object or primitive, if path was found. -
undefined- Void, if path was not found.