5.3.0
See also:
- The full Changelog.
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 theupdate
routines fromname
topath
. - 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.