jacobwilliams / json-fortran

A Modern Fortran JSON API
https://jacobwilliams.github.io/json-fortran/
Other
333 stars 82 forks source link

add a new option to json_file constructor #566

Closed jacobwilliams closed 2 months ago

jacobwilliams commented 2 months ago

If nullify_pointer is False, the pointer is not nullified Fixes #564

LaplaceSoda commented 2 months ago

Test results show that after adding nullify_pointer=.false., the original json_file object seems still broken.

jacobwilliams commented 2 months ago

Yeah, this doesn't really "fix" the issue you mention in #564, but it just gives another option for something somebody might want to do in some cases. Specifically, add a json pointer to a json_file, but keeping it associated, and then subsequently nullifying the one in the json_file.