https://github.com/beenotung/best-effort-json-parser
Parse incomplete json text in best-effort manner
https://github.com/beenotung/best-effort-json-parser
Last synced: 5 months ago
JSON representation
Parse incomplete json text in best-effort manner
- Host: GitHub
- URL: https://github.com/beenotung/best-effort-json-parser
- Owner: beenotung
- License: bsd-2-clause
- Created: 2020-12-20T12:32:08.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-02-14T17:38:55.000Z (8 months ago)
- Last Synced: 2025-04-13T12:48:47.599Z (6 months ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/best-effort-json-parser
- Size: 46.9 KB
- Stars: 191
- Watchers: 3
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# best-effort-json-parser
Parse incomplete json text in best-effort manner
[](https://www.npmjs.com/package/best-effort-json-parser)
[](https://bundlephobia.com/package/best-effort-json-parser)
[](https://bundlephobia.com/package/best-effort-json-parser)## Example
```typescript
import { parse } from 'best-effort-json-parser'let data = parse(`[1, 2, {"a": "apple`)
console.log(data) // [1, 2, { a: 'apple' }]
```More examples see [parse.spec.ts](./src/parse.spec.ts)
## License
This is free and open-source software (FOSS) with
[BSD-2-Clause License](./LICENSE)