Skip to content

Instantly share code, notes, and snippets.

@DrPaulBrewer
Created January 8, 2016 15:25
Show Gist options
  • Save DrPaulBrewer/0818307c50b4247831da to your computer and use it in GitHub Desktop.
Save DrPaulBrewer/0818307c50b4247831da to your computer and use it in GitHub Desktop.
environment vars to JSON
#!/usr/bin/env python
import json
import os
print json.dumps(dict(os.environ))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment