Get json data inside brackets [ ] instead of { }

Hello guys,

I have this json format:


how I get the {{entry.categories.title}} data to work?
I see there’s a “[” before a “{” and I guess it doesnt make works.

but my other data without the brackets is working normally, I just didn’t know to get when the bracket is before a brace.

var title1 = categories[0].title

categories is an array of objects, and title is a property of an object in the array,

so you are basically getting the first item in the array (index 0), then accessing the title property on the returned object. You could research some posts about JSON structure to get more detailed info :smile:

1 Like

Thanks Djett!! Now it’s working!

1 Like