importjsonas_jsonimporttypingas_tclass_CompactJSON:"""Wrapper around json module that strips whitespace."""@staticmethoddefloads(payload:_t.Union[str,bytes])->_t.Any:return_json.loads(payload)@staticmethoddefdumps(obj:_t.Any,**kwargs:_t.Any)->str:kwargs.setdefault("ensure_ascii",False)kwargs.setdefault("separators",(",",":"))return_json.dumps(obj,**kwargs)