@classmethod<EOL><INDENT>def ordered(cls, obj):<DEDENT>
if isinstance(obj, dict):<EOL><INDENT>return sorted((k, cls.ordered(v)) for k, v in obj.items())<EOL><DEDENT>if isinstance(obj, list):<EOL><INDENT>return sorted(cls.ordered(x) for x in obj)<EOL><DEDENT>else:<EOL><INDENT>return obj<EOL><DEDENT>
Normalize the JSON object.

        from https://stackoverflow.com/questions/25851183/
        how-to-compare-two-json-objects-with-the-
        same-elements-in-a-different-order-equa