hello to all,
I try to put two arrays inside one json object in javascript. But it's not working.
here my code:
My goal is to store the details of a player in a array and than to store the player in a specific group.
Thanks for any help !
I try to put two arrays inside one json object in javascript. But it's not working.
here my code:
Code:
var txt = '{"event":["group1":["player1":[{"name":"markus", "age":"34"}]]]}';
obj = JSON.parse(txt);
Thanks for any help !
Comment