The outermost structure is also an Array, so you need to access the first index of that array to get to the object.
quest[0].Opcoes.length
When you did this:
quest.Opcoes.length
you should actually get a TypeError instead of undefined
since quest
has no Opcoes
property, meaning .length
would be accessing a property on undefined
.