Tl;DR Twig won't let me drill down into a nested object.
I have this collection of json_decoded objects that has a nested object within it. When trying to output a property of the nested object I get an error like:
Item "text" for "" does not exist
when I try a to dump out the nested object i can see it fine... but I can't access any of it's properties. Here's the dump of the "entire" parent object
Using this in my loop
{% for item in allFields %}
{{ dump(item) }}
{% endfor %}
And here is the dump of the nested label object its self using {{dump(item.label)}} in my loop
Using this in my loop
{% for item in allFields %}
{{ dump(item.label) }}
{% endfor %}
I'm attempting to get the text property (and others) of the label class by using a twig for loop like so:
{% for item in allFields %}
{{ item.label.text }}
{% endfor %}
And it is here that I get the error
Item "text" for "" does not exist