Skip to content

Instantly share code, notes, and snippets.

@pwillis-els
Created September 30, 2020 19:58
Show Gist options
  • Save pwillis-els/0c15b62dc8cfaedc1b7eaf77aa79d22f to your computer and use it in GitHub Desktop.
Save pwillis-els/0c15b62dc8cfaedc1b7eaf77aa79d22f to your computer and use it in GitHub Desktop.
Python one-liner to convert json stdin into key=value on stdout
#!/bin/sh
python -c 'import sys,json;j=json.load(sys.stdin); print( "\n".join(["%s=%s" % (k, j[k]) for k in j]) )'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment