Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
default_dumper = JsonDumper()
class JsonLoader(object):
def __init__(self, **kwargs):
self.kwargs = kwargs
def __call__(self, src):
if isinstance(src, string_types):
return json.loads(src, **self.kwargs)
else:
return json.load(src, **self.kwargs)
default_loader = JsonLoader()
class JsonDiffSyntax(object):
def emit_set_diff(self, a, b, s, added, removed):
raise NotImplementedError()
def emit_list_diff(self, a, b, s, inserted, changed, deleted):
raise NotImplementedError()
def emit_dict_diff(self, a, b, s, added, changed, removed):
raise NotImplementedError()
def emit_value_diff(self, a, b, s):
raise NotImplementedError()
def patch(self, a, d):