Skip to content

Instantly share code, notes, and snippets.

@bmccormack
Created October 13, 2016 11:48
Show Gist options
  • Select an option

  • Save bmccormack/a42eea33a82372bd3f2edda5ae6130a2 to your computer and use it in GitHub Desktop.

Select an option

Save bmccormack/a42eea33a82372bd3f2edda5ae6130a2 to your computer and use it in GitHub Desktop.

Revisions

  1. bmccormack created this gist Oct 13, 2016.
    4 changes: 4 additions & 0 deletions jprint.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    import json
    #via http://stackoverflow.com/a/12944035/166258
    def jprint(to_print, indent=4, sort_keys=True):
    print json.dumps(to_print, indent=indent, sort_keys=sort_keys)