I have a JSON file with a lot of objects like this (e.g. properties of Pikemen unit >Heroes 3 btw<):
[ {
"ID": 0,
"AI": 80,
"": null,
"Level": 0,
"Growth": 14,
"Low": 20,
"High": 50,
"Town": 0,
"Name": "Pikeman",
}, etc.. ]
How could I make "Name" property the name of every object in my JSON file? Either in JS code or through formatting file. What I mean is:
[ "Pikeman": {
"ID": 0,
"AI": 80,
etc..
} ]