def METHOD_NAME(self, value):
    self._parser.advance(String())
    if self._parser.stack[-1] == MapKeyMarker():
        self._parser.advance(MapKeyMarker())
        self.write_object_key(value)
    else:
        self.write_value(value)