We have players that own cosmetics. Cosmetics are inventory items. Each cosmetic can have up to 14 variants. So we store variants unlocked as an int array. 0 for unlocked and 1 for locked.
We use a cloudscript to unlock the variant. I am not very familiar with serializing objects in cloudscript. I assume that I need to serialize the int array before putting it into dataPayload. Or would an array of strings work instead?