best-effort-json-parser
v1.1.2
Published
Parse incomplete json text in best-effort manner
Downloads
83,635
Maintainers
Readme
best-effort-json-parser
Parse incomplete json text in best-effort manner
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