AnsweredAssumed Answered

Parse data from unnamed JSON objects

Question asked by poliver88 on Jan 23, 2019
Latest reply on Jan 23, 2019 by poliver88

I'm looking for a native way to parse data from unnamed JSON objects

 

I have a JSON that goes something like this

 

{  
"kind":"calendar#events",
"etag":"\"p320a9qs8ou1u00g\"",
"summary":"test",
"items":[  
{  
"test1":"bla11",
"test2":"bla12"
},
{  
"test1":"bla21",
"test2":"bla22"
},
{  
"test1":"bla31",
"test2":"bla32"
}
]
}


As you can see I've got unnamed objects nested in an array


I'm trying to find a way to loop through the unnamed objects within the array

 

eg. I'm trying access bla11, bla21, bla31 etc.


I know you can access the the arrays by index using [0] but is there a similar way for objects since they don't have names...

 

Thank you!

Outcomes