old_contents: import json
  
  from pyckson.serializer import serialize
  from pyckson.parser import parse
  
  
  def dump(obj, fp, **kwargs):
      kwargs['default'] = serialize
      return json.dump(obj, fp, **kwargs)
  
  
  def dumps(obj, **kwargs):
      kwargs['default'] = serialize
      return json.dumps(obj, **kwargs)
  
  
  def load(cls, fp, **kwargs):
      def hook(obj):
          return parse(cls, obj)
  
      kwargs['object_hook'] = hook
      return json.load(fp, **kwargs)
  
  
  def loads(cls, s, **kwargs):
      def hook(obj):
          return parse(cls, obj)
  
      kwargs['object_hook'] = hook
      return json.loads(s, **kwargs)
  
new_contents: import json
  
  from pyckson.serializer import serialize
  from pyckson.parser import parse
  
  
  def dump(obj, fp, **kwargs):
      kwargs['default'] = serialize
      return json.dump(obj, fp, **kwargs)
  
  
  def dumps(obj, **kwargs):
      kwargs['default'] = serialize
      return json.dumps(obj, **kwargs)
  
  
  def load(cls, fp, **kwargs):
      json_obj = json.load(fp, **kwargs)
      return parse(cls, json_obj)
  
  
  def loads(cls, s, **kwargs):
      json_obj = json.loads(s, **kwargs)
      return parse(cls, json_obj)
  
subject: remove json object_hook which does not work as expected