code: def register_json_encoder(self, encoder_type: type, encoder: JSONEncoder):
          
          self._json_encoders[encoder_type] = encoder
          return self
docs: Register the given JSON encoder for use with the given object type.
          :param encoder_type: the type of object to encode
          :param encoder: the JSON encoder
          :return: this builder