This might be a basic question, but please have some patience as I have little experience working with JSON. I am accessing data from a web API that is returned in this format:
{
"foo": {
"data1": "this is unique data!",
"data2": "this is also unique data!",
"data3": {
"info": "information!"
}
},
"bar": {
"data1": "this is unique data!",
"data2": "this is also unique data!",
"data3": {
"info": "information!"
}
},
"baz": {
"data1": "this is unique data!",
"data2": "this is also unique data!",
"data3": {
"info": "information!"
}
}
}
Without knowing what the foobar values are, would I be able to access the data within them all and return them like this?
[foo, bar, baz]
And if so, how? Thanks in advance.