def ToCanonicalJSON(dict, indent=False):
 return json.dumps(dict, sort_keys=True, indent=indent)

def ToCanonicalJSON ( dict , indent = False ) : return json . dumps ( dict , sort_keys = True , indent = indent )
convert "dict" to a canonical json string .