Skip to content

Instantly share code, notes, and snippets.

@gbvanrenswoude
Created May 15, 2020 11:13
Show Gist options
  • Save gbvanrenswoude/dd4dbd938a4f2539863e5a27a8c5fc19 to your computer and use it in GitHub Desktop.
Save gbvanrenswoude/dd4dbd938a4f2539863e5a27a8c5fc19 to your computer and use it in GitHub Desktop.
convert json to html in bash (using python)
python - <<EOF
from json2html import *
with open("report.json", "r") as f:
with open("report.html", "w") as nf:
nf.write(json2html.convert(json = f.read()))
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment