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

def register_json_encoder(self, encoder_type: type, encoder: JSONEncoder):
        """
        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
        """
        self._json_encoders[encoder_type] = encoder
        return self