def METHOD_NAME(self):
    """
    Returns a json-serializable object.
    """
    # We have no idea whether the values in this object's dict are
    # json-serializable.
    raise NotImplementedError(
        "to_serializable has not been implemented by %s" % self.__class__
    )