def METHOD_NAME(self, key: str, value: Any) -> 'JsonWriter':
    """ Write out an object element with the given key and value.
        This is a shortcut for calling 'key()', 'value()' and 'next()'.
    """
    self.key(key)
    self.value(value)
    return self.next()