summaryrefslogtreecommitdiff
path: root/prettyson
diff options
context:
space:
mode:
Diffstat (limited to 'prettyson')
-rwxr-xr-xprettyson9
1 files changed, 9 insertions, 0 deletions
diff --git a/prettyson b/prettyson
new file mode 100755
index 0000000..367cff8
--- /dev/null
+++ b/prettyson
@@ -0,0 +1,9 @@
+#!/usr/bin/python
+
+import sys, json
+
+objs = []
+for filename in sys.argv[1:]:
+ with open(filename) as f:
+ objs.append(json.load(f))
+json.dump(objs, sys.stdout, indent=4)