I have vague recollections of a tool that was similarly supposed to make JSON files diffable. IIRC it procedurally built up the object, so {"foo": {"bar": "baz", "quux": [1, 2, 3]}} would be:
foo = {}
foo.bar = "baz"
foo.baz = []
foo.baz[0] = 1
...