From 1eab650c0daf312782548f4332f2998da5f0a954 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 29 Feb 2016 21:14:48 +0200 Subject: Add prettyml, prettyson --- prettyson | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 prettyson (limited to 'prettyson') 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) -- cgit v1.2.1