Skip to content

beenotung/best-effort-json-parser

Repository files navigation

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