Note this is fullpathjson2.py from my article http://www.infotinks.com/full-path-json/
To download:
wget https://gist.githubusercontent.com/bhbmaster/b4c2566a3b24f750c631b8b7f71d78e3/raw/fullpathjson.py -O fullpathjson.py
curl https://gist.githubusercontent.com/bhbmaster/b4c2566a3b24f750c631b8b7f71d78e3/raw/fullpathjson.py -o fullpathjson.py
To run (with python3)
python3 fullpathjson.py some.json
python3 fullpathjson.py some.json > some.txt