Hey,
For every user that's play my game i store a user read only data that's look like this.
This content holds the progress of the user at specific level, for instance in the following JSON you can see that in level 1 (ID : 1) the user didn't get any start and etc.
{ "PlayerLevelsList": [ { "ID": "1", "Stars": "0", "PowerupsTaken": { "Teleport": 0, "Undo": 0, "TileStamp": 0, "Hint": 0 } } ] }
i want to update this JSON from cloud script, and add another item for this PlayerLevelsList.
{ "PlayerLevelsList": [ { "ID": "1", "Stars": "2", "PowerupsTaken": { "Teleport": 1, "Undo": 2, "TileStamp": 0, "Hint": 0 } }, { "ID": "2", "Stars": "0", "PowerupsTaken": { "Teleport": 4, "Undo": 0, "TileStamp": 0, "Hint": 0 } } ] }
how do i do that?
what do i need to send from the client?
is there any code example?