Log/store large json data

Hi! I’d like to use Matomo to log arbitrary json data, to be saved to its database where I could then easily export it. I tried to do this with regular events, but there seems to be a size limit. The data I’d like to log could be north of 20k characters of json. Is this possible?