/json-parser

non-strict json parser. write it just for fun

Primary LanguageJavaScript

json-parser

json-parser can be used to parse non-standard json

Usage

json.parse( `
  {
    a: 'null',
    "b": 1,
    'c': [ -Infinity, NaN, 'a', { null: { c: 'NaN' } } ],
    d: '\\'',
    e: "\\"",
    f: -Infinity,
  }
` )