There are many objects in the JSON file that look like I have shown below. I want to give an index number starting from 0 for each of these objects. How can I do it?
[
{
"language": "Python",
"created": "2018-8-27 14:50:31",
"evaluated": true,
"hiddenCode": false
},
...
]
Object.keys(objectName).forEach((each, index) => {/* Your code */})