best-effort-json-parser
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

best-effort-json-parser

Parse incomplete json text in best-effort manner

npm Package Version Minified Package Size Minified and Gzipped Package Size

Example

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

License

This is free and open-source software (FOSS) with BSD-2-Clause License

Package Sidebar

Install

npm i best-effort-json-parser

Weekly Downloads

13,363

Version

1.1.2

License

BSD-2-Clause

Unpacked Size

43.6 kB

Total Files

8

Last publish

Collaborators

  • beenotung