So this is been giving me a headache for quite a while:
{
"gravetender": {
"musicTokens": 2
},
"Bob-chan": {
"musicTokens": 3
}
}
I simply want to set all the musicTokens to 5, no matter the name. I've tried forEach and for in.
This is what changes the musicTokens for a single user for now:
client.profiles [message.author.username].musicTokens = 5;
My client.profiles is my JSON, the message.author.username gets the name and .musicTokens targets the variable.
I'm looking for something like client.profiles.*.musicTokens = 5
thanks