Question about getting specified value from JSON

TYSM for your reply, i now figured out how to do so

all i did was, based on my code above, changing
<h2 >{{people[0].gender}}</h2>

to

<h2 >{{ people[0]?.gender }}</h2> in order to print the gender value of the 1st guy