docs: def JSONObjectReader(registry, fi, deref=False):
      """Stream objects from a JSON file.
  
      :param registry: serialisation registry.
      :param fi: input file
      :param deref: flag, if True, objects will be dereferenced on decoding,
          otherwise we are lazy about decoding a JSON string.
      """
      for line in fi:
          yield registry.from_json(line, deref=deref)