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.
13 jsonfile = open(filename)
15 print >>sys.stderr, "unable to load %s: %s" % \
16 (filename, err.strerror)
20 json = simplejson.load(jsonfile)
21 except ValueError, err:
22 print "%s is malformed: %s" % (filename, err)
30 if len(sys.argv) != 3:
31 print >>sys.stderr, "usage: %s json1 json2" % sys.argv[0]
34 json1 = load(sys.argv[1])
35 json2 = load(sys.argv[2])
41 if __name__ == '__main__':