Display a specific element of a list in an expression from a REST API
Question
Application Type
Reactive

I have a Json structure below and when I call the Name in an expression it only displays the first item of the list. How do I specify or index elements of the list. 


The data is being called from a RESR API 

[

{

"Name": "Ashley Smith",

"Occupation": "Doctor",

"Country": "United Kingdom"

},

{

"Name": "Clair Smith",

"Occupation": "Doctor",

"Country": "United Kingdom"

}

]

Hi Yats,


The expression will only show one element, hence only the current will appear. 

You could specify the position that you want to show like "json.List[1].Name" but that is not a good practice.

Can you give more detail in want do you want to accomplish?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.