npm @prantlf/jsonlint 7.0.0
v7.0.0

latest releases: 14.0.3, 14.0.2, 14.0.1...
4 years ago

7.0.0 (2019-06-02)

Bug Fixes

  • Do not use the native parser in Safari and Node.js 4 (a4a606c)
  • Include the minified scripts used on the on-line page in the NPM module (03561ec)

Features

  • Add "mode" parameter to set flags for a typical formt type easier (9aa09fb)
  • Add an option for ignoring trailing commas in object and arrays (7d521fb)
  • Add an option for reporting duplicate object keys as an error (09e3977)
  • Replace the parser generated by Jison with a hand-built parser from JJU (2781670)
  • Support reviver from the native JSON.parse method (83cd33c)

BREAKING CHANGES

  • There is no yy.parseError to intercept error handling. Use the thrown error - it contains all available information. The error does not include the hash object with structured information. Look for the documented properties. The location of the error occurrence is available as location.start, for example. This error reporting was enabled earlier by the limitedErrorInfo option, which is implied enabled thus ignored now.

DEPRECATION: The only exposed object to use from now on is the parse method as a named export. Other exports (parser and Parser) are deprecated and will be removed in future.

The parser from "Utilities to work with JSON/JSON5 documents" is four times faster, than the prevous one, has approximatly the same size and can be easier enhanced, regarding both features and error handling.

Don't miss a new jsonlint release

NewReleases is sending notifications on new releases.