Announcing the 8.1.0 release of JSON-Fortran. There are a few new features, most notably a new convenience feature where you can specify a default value in a get
call to be used if the variable is not present. Like so:
call json%get('i', i, default=i_default)
which saves you an extra line of code from previous versions.
I also added a json_file
to character string assignment operator (which is just a wrapper for the deserialize
method), so you can do this:
type(json_file) :: f
f = '{"x": [1,2,3]}'
See the changelog for full details.