Skip to content

Instantly share code, notes, and snippets.

@scottrogowski
Created March 26, 2015 15:56
Show Gist options
  • Select an option

  • Save scottrogowski/6b3711c4f32a3d93f74c to your computer and use it in GitHub Desktop.

Select an option

Save scottrogowski/6b3711c4f32a3d93f74c to your computer and use it in GitHub Desktop.

Revisions

  1. scottrogowski created this gist Mar 26, 2015.
    16 changes: 16 additions & 0 deletions json_loader
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    #!/usr/bin/env python

    # Loads the json contents of the clipboard as a python datastructure called jobj

    import sys
    import json
    from IPython import embed

    if __name__ == "__main__":
    f_name = sys.argv[1]
    with open(f_name) as f:
    jobj = json.loads(f.read())
    print "="*50
    print "The json is loaded as 'jobj'. Have at it!"
    print "="*50
    embed()