https://github.com/typescriptlibs/tsl-core-json
TypeScript Library for JSON
https://github.com/typescriptlibs/tsl-core-json
json typescript
Last synced: 8 months ago
JSON representation
TypeScript Library for JSON
- Host: GitHub
- URL: https://github.com/typescriptlibs/tsl-core-json
- Owner: typescriptlibs
- License: mit
- Created: 2023-01-03T07:19:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-07-06T06:19:03.000Z (10 months ago)
- Last Synced: 2025-08-15T13:36:14.699Z (9 months ago)
- Topics: json, typescript
- Language: TypeScript
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
- Authors: AUTHORS.md
Awesome Lists containing this project
README
TypeScript Library for JSON
===========================
This is a TypeScript-optimized library to handle JSON.
Installation
------------
```sh
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
-----
* [github.com/typescriptlibs/tsl-core-json](https://github.com/typescriptlibs/tsl-core-json/releases)
* [npmjs.com/package/tsl-core-json](https://www.npmjs.com/package/tsl-core-json)
* [typescriptlibs.org](https://typescriptlibs.org/)