Releases: jacobwilliams/json-fortran
Releases · jacobwilliams/json-fortran
9.2.0
See also
- The full Changelog.
Summary
- Added a non-recursive
cloneoption (see theuse_nonrecursiveoptional argument tojson_clone). - Added an optional
verboseargument to theequalsfunction, for printing information about how the two structures differ. - Added
null_to_integer_modeandnull_to_integer_valueoptions, which allow for controlling the results if attempting to return anullvalue as an integer. - Speed up printing JSON to a string.
- Added some
iomsgoutputs for file open/close errors. - Added
add_null_by_pathtojson_coreandadd_nulltojson_file. Now,nullvalues and vectors can more easily be added programmatically to JSON structures. - Fixed some issues with the example Visual Studio solution for Visual Studio 2022. Removed a deprecated flag. Also increased the stack size to 3 MB, which was necessary for one of the tests to pass.
- Consolidate duplicated code for
json_add_*_by_pathroutines
9.1.0
See also
- The full Changelog.
Summary
- Added a new JSON parser option (
parser_mode=2). This is a non-recursive version of the parser. The original one is still the default. - Added a
json_value_equalsmethod, to compare two JSON structures. - Various updates for speed. Added a new
string_to_real_modeoption to specify the algorithm to use for string to real conversions. The original one (string_to_real_mode=1) is still the default. A new one (string_to_real_mode=2) uses C-library functions and may be faster in some cases. - Added a
close_unit_if_openargument tojson_parse_file. The default is True. - Updated the Visual Studio solution file. Two of the tests were missing. Also added three missing
.incfiles to the solution.
9.0.5
9.0.4
9.0.3
9.0.2
9.0.1
9.0.0
See also
- The full Changelog.
Summary
- By default, the JSON pointer in
json_fileis now destroyed before loading. This is to prevent a memory leak if the type is used later to load another file. Also added a new optiondestroy_pointerto thejson_fileload routines, which can be set to False to get the old behavior (not to destroy it). - Added add a new
nullify_pointeroption to thejson_fileconstructor (default is True) - Updates for the CI and unit tests. Now testing with FPM, and running all tests with valgrind to check for memory leaks.
- Added an optional
allow_trailing_commaargument to the initialize routines (default is True). If set to False, this disallows extra trailing commas in arrays and objects.