Skip to content

5.3.0

Compare
Choose a tag to compare
@jacobwilliams jacobwilliams released this 08 Apr 18:12
· 501 commits to master since this release

See also:

Summary:

  • It is now possible to build a JSON structure by specifying the paths to the variables. The update routines also now use this new feature so if the variable is not present, it will be added using the path (formerly, it added it as a name, which was inconsistent). Renamed the argument to the update routines from name to path.
  • Added new get routine to return an allocatable string array
  • Arrays of scalar values can now optionally be printed on a single line
  • When reading an empty JSON array it is now returned as an allocated array with zero length (rather than an unallocated array).
  • Fixed an issue where the char_count wasn’t always correct, which caused the error message for invalid JSON to be wrong.
  • Fixed an issue where values with significant trailing whitespace were being trimmed when printed.
  • Fixed two bugs in json_get_path for RFC 6091 path mode. Special characters weren’t being encoded properly, and it didn't work if the final key was all whitespace.
  • Fixed an issue with indenting of arrays within arrays.