When option -f is used (to update the output right into the source JSON file) and either of these failures occur:
fail: template argument failed interpolation
fail: file <name> holds an invalid JSON
fail: argument walk-type (<walk>) not allowed, due to mode <mode> already set
fail: non-walk argument <arg> not allowed, due to option -<opt> given
fail: non-walk argument <arg> not allowed, due to mode <mode> already set
then the source JSON file is lost (becomes empty)
When option
-fis used (to update the output right into the source JSON file) and either of these failures occur:fail: template argument failed interpolationfail: file <name> holds an invalid JSONfail: argument walk-type (<walk>) not allowed, due to mode <mode> already setfail: non-walk argument <arg> not allowed, due to option -<opt> givenfail: non-walk argument <arg> not allowed, due to mode <mode> already setthen the source JSON file is lost (becomes empty)