Permalink
Browse files

Use json module instead of simplejson.

  • Loading branch information...
1 parent e4eaee4 commit c88475f60cf0b1189039db8ef8c423ae1c80b4ae @pgriess committed Apr 19, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 json-pp
View
@@ -1,9 +1,9 @@
#!/bin/env python
-import sys, simplejson
+import sys, json
lines = sys.stdin.readlines()
jsonText = ''.join(lines)
-jsonObj = simplejson.loads(jsonText)
+jsonObj = json.loads(jsonText)
-print simplejson.dumps(jsonObj, indent=4)
+print json.dumps(jsonObj, indent=4)

0 comments on commit c88475f

Please sign in to comment.