Help using json data

Im getting some json data from an api and my goal is to take all the PlaceId given and print all of them out in a p tag. the problem is i dont know what i should right in my code to get it.
my code:

.then((res) => res.json())
      .then((response) => {
        console.log(response);
        setPlaceId(response.Places.PlaceId);
      })

As i can see in the picture the Places is an array. To get it either use a loop or get each Places object by index

1 Like

that was easy haha thanks