Created
May 15, 2020 11:13
-
-
Save gbvanrenswoude/dd4dbd938a4f2539863e5a27a8c5fc19 to your computer and use it in GitHub Desktop.
convert json to html in bash (using python)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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