I have several JSON arrays. They look like
[["Vishnu", 25],["Joginder", 22],["Amar", 27],["Rohan", 24],["Karan", 23]]
I want to prepare a Javascript code to convert these array of arrays to JSON arrays but with keys, which looks like:
[{"Player": "Vishnu", "Age": 25},{"Player": "Joginder", "Age": 22},{"Player": "Amar", "Age": 27},{"Player": "Rohan", "Age": 24},{"Player": "Karan", "Age": 23}]
Can anyone provide me some idea, or a code for it.