zaach / jsonlint

A JSON parser and validator with a CLI.
http://zaach.github.com/jsonlint/
1.94k stars 420 forks source link

RangeError: Maximum call stack size exceeded #130

Open xmedeko opened 3 years ago

xmedeko commented 3 years ago

I have a broken JSON, the JSON lints fails with

RangeError: Maximum call stack size exceeded
    at String.match (<anonymous>)
    at Object.next (jsonlint.js:316)
    at Object.lex (jsonlint.js:349)
    at Object.lex (jsonlint.js:353)
    at lex (jsonlint.js:91)

Instead of some nice error message. I have used lib/jsonlint.js file.