Skip to content

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 03 Oct 07:46
· 80 commits to master since this release
c387fe3

JSON v1.0.0

Diff since v0.21.4

Breaking changes

  • show_json, Context and Serialization overloads have been removed
  • inttype keyword argument has been removed from JSON.parse

New functionality

  • JSON.parse(json, T) now supports passing a type to parse the json as (similar to JSON3.jl-type functionality)
  • JSON.parse now supports additional keyword arguments: allownan, ninf, inf, nan, jsonlines, dicttype, null, and style. See ?JSON.parse docstring for details on these new keyword arguments.
  • JSON.parse will now return a JSON.Object by default, which is a mutable, key-order-preserving drop-in Dict replacement that supports dot-access for keys
  • JSON.lazy is a new function that allows for lazily accessing deeply nested properties of json objects/arrays
  • JSON.isvalidjson is a new function to check that input json is actually valid json
  • JSON.json now supports additional keyword arguments: omit_null, omit_empty, allownan, jsonlines, pretty, ninf, inf, nan, float_style, float_precision, and style. See ?JSON.json docstring for more details on these.

Merged pull requests:

Closed issues:

  • performance benchmarks (#59)
  • question: JSON.json(array) (#93)
  • Throw exceptions on unknown/unreasonable types (#108)
  • Revise MemoryParserState (#235)
  • Support JSON schema (#238)
  • Reading past end of JSON data in a stream (#239)
  • a little too much enthusiasm for unpacking objects without a JSON representation (#277)
  • Parsing a dubious JavaScript/JSON file (#292)
  • JOSN.print throws StackOverflow error (#334)
  • parsefile: Windows unlink permission denied (#347)
  • typos (#357)
  • Why this json string cannot be parsed? (#365)