bash one liner to convert *.json test files to pretty print json

run from your test directory, e.g., /parsers/test/fortinet/fortigate/. requires python. I'm not very good at these one liners, so please let me know if you would recommend any modifications. for this simple purpose, seemed to work fine.


for f in $(find . -type f -name '*.json'); do str=$(<${f}); echo $str | python -m json.tool > ${f}; done

The latest command-runner will write the JSON as pretty print