How can I access this data?
Here is my Json:
{ \"6a768d67-82fb-4dd9-9433-d83dbd2f1b78\": { \"name\": \"Bahut\", \"11\": { \"timestam
You could use Object.keys to get an array of properties.
Object.keys
var js = JSON.parse(json); var props = Object.keys(js); var result = props.map(function(prop) { return { id: prop, name: js[prop].name; }; });
The final result is an array of objects with 2 properties: id, name
id
name