How can I access this data?
Here is my Json:
{
\"6a768d67-82fb-4dd9-9433-d83dbd2f1b78\": {
\"name\": \"Bahut\",
\"11\": {
\"timestam
You need to use array-style access to get the subobject associated with the id key:
var nameid = json["a12d22cc-240e-44d6-bc58-fe17dbb2711c"].name; // or ["name"]
// nameid => "Cuis"
This is because hyphens are not a valid character for dot-style access (can't use them in variable names in JavaScript).
In order to extract all of the you will need to loop through the object, and add them to an array, like so:
var arr = [];
for (var id in json) {
arr.push(json[id]["name"]);
}
Which will give you an array of all the names in that JSON object.