Skip to content

Releases: jacobwilliams/json-fortran

9.2.0

05 Jan 20:14

Choose a tag to compare

See also

Summary

  • Added a non-recursive clone option (see the use_nonrecursive optional argument to json_clone).
  • Added an optional verbose argument to the equals function, for printing information about how the two structures differ.
  • Added null_to_integer_mode and null_to_integer_value options, which allow for controlling the results if attempting to return a null value as an integer.
  • Speed up printing JSON to a string.
  • Added some iomsg outputs for file open/close errors.
  • Added add_null_by_path to json_core and add_null to json_file. Now, null values 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_path routines

9.1.0

03 Jan 02:46

Choose a tag to compare

See also

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_equals method, to compare two JSON structures.
  • Various updates for speed. Added a new string_to_real_mode option 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_open argument to json_parse_file. The default is True.
  • Updated the Visual Studio solution file. Two of the tests were missing. Also added three missing .inc files to the solution.

9.0.5

26 Aug 00:43

Choose a tag to compare

See also

Summary

  • A minor change to work around a possible compiler bug in Gfortran 15.1.

9.0.4

02 Aug 14:58

Choose a tag to compare

See also

Summary

  • Configure .VERSION.in in CMAKE_CURRENT_SOURCE_DIR in main CMakeLists.txt.
  • Fixed error when using non-default ints. 🐞
  • Various CI updates. Now testing Gfortran 9, 10, 11, 12. Removed tests for Gfortran 7, 8.

9.0.3

22 Feb 16:43

Choose a tag to compare

See also

Summary

  • Added some checks to write statements to avoid potential crashes.
  • Attempting to reduce the size of the repo by pruning the documentation gh-pages history.

9.0.2

25 Aug 14:45

Choose a tag to compare

See also

Summary

  • Added workarounds for potential stack overflows on Windows using ifort compiler. 🐞
  • Fixed CI documentation deployment.

9.0.1

12 Jun 04:21

Choose a tag to compare

See also

Summary

  • No code changes. Just an update to the CI to fix documentation deployment.

9.0.0

12 Jun 02:54

Choose a tag to compare

See also

Summary

  • By default, the JSON pointer in json_file is 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 option destroy_pointer to the json_file load routines, which can be set to False to get the old behavior (not to destroy it).
  • Added add a new nullify_pointer option to the json_file constructor (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_comma argument to the initialize routines (default is True). If set to False, this disallows extra trailing commas in arrays and objects.

8.5.2

27 May 13:17

Choose a tag to compare

See also

Summary

  • Fixed a CMake bug where the package version was not set correctly, which caused the CMake configuration files to be saved to a folder with a blank version name.🐞

8.5.1

26 May 13:53
46dcb62

Choose a tag to compare

See also

Summary

  • Fixed a bug when setting JSONFORTRAN_STATIC_LIBRARY_ONLY to False. 🐞
  • Also restored some of the original CMake settings from 8.4.0. Specifically, the tests are enabled by default, and both the shared and static libraries are built by default.