One approach could be to use a non persistent entity with to temporarily store the values you to store in a single field, then use an export mapping to serialise this into JSON you can store in a single String. To get the data back, you can use an import mapping to reverse the procedure and get the data back into the non persistent entity.
Hope this helps.