3 # Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
5 # Jansson is free software; you can redistribute it and/or modify
6 # it under the terms of the MIT license. See LICENSE for details.
12 import simplejson as json
16 jsonfile = open(filename)
18 print >>sys.stderr, "unable to load %s: %s" % \
19 (filename, err.strerror)
23 jsondata = json.load(jsonfile)
24 except ValueError, err:
25 print "%s is malformed: %s" % (filename, err)
33 if len(sys.argv) != 3:
34 print >>sys.stderr, "usage: %s json1 json2" % sys.argv[0]
37 json1 = load(sys.argv[1])
38 json2 = load(sys.argv[2])
44 if __name__ == '__main__':