0.3.0 • Published 10 months ago

tsl-core-json v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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

0.3.0

10 months ago

0.2.0

2 years ago

0.1.0

2 years ago