There is the native JSON.stringify method, but this is NOT what I need
I need to convert the following
[['user1',150],['user2',270],['user3',500]]
to a proper JSON object
{"user1" : 150,
"user2" : 270,
"user3" : 500
}
There is the native JSON.stringify method, but this is NOT what I need
I need to convert the following
[['user1',150],['user2',270],['user3',500]]
to a proper JSON object
{"user1" : 150,
"user2" : 270,
"user3" : 500
}