Parse incomplete json text in best-effort manner
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
This is free and open-source software (FOSS) with BSD-2-Clause License