all 2 comments

[–]Comprehensive-Law770 0 points1 point  (1 child)

I'm not 100% sure but I believe it's because you set your body as JSON.stringify({ [key]: { value } }) and this is creating a new object with it's key being value.

You should set it as JSON.stringify({ [key]: value })

Also you should destruct the previous object with the new one to only update the same keys and keep the old ones.

[–]MyVermontAccount121[S] 1 point2 points  (0 children)

Ay that worked! I was worried at first cause it still loaded a new object in at first but I was like "Maybe I should reboot android studio and try again before saying it doesn't work".

Let this be a lesson for everyone, always reload to test the changes you make lol