tsl-core-json
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

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.

Links

Readme

Keywords

Package Sidebar

Install

npm i tsl-core-json

Weekly Downloads

2

Version

0.3.0

License

MIT

Unpacked Size

12.8 kB

Total Files

11

Last publish

Collaborators

  • typescriptlibs