How to access the contents of this subArray?

0

I can access the contents of an Array like this:

{{teste02[0]}}

And I get the following as a return:

{"assigned_date":"1969-12-31 21:00:00.000","user_id":"101","role_id":"101","group_id":
{"path":"/administrador","displayName":"Administrador","icon":"",
"name":"administrador","description":"","parent_path":"",
"creation_date":"2017-08-18 11:04:28.846","id":"302",
"created_by_user_id":"-1","last_update_date":"2017-08-18 11:04:28.846"},"assigned_by_user_id":"-1"}

But what I really need is to access the content of the name subArray. I've tried {{teste02[0][0].name}} but nothing is returned, how could I access it?

    
asked by anonymous 28.08.2017 / 15:16

1 answer

0

The problem was in the way I tried to access the contents of the subArray, I had missed the full path that I needed to make available to access its content.

Initially I put it like this: {{teste02[0].name}} But before being able to access that content there was the subArray group_id . In the end the correct one was to put like this: {{teste02[0].group_id.name}}

    
28.08.2017 / 15:33