I know something is not right with the way I'm trying to read this JSON data. :
[
{
"test": "test",
"listings": [
{
"public":
{
"item_id": 0,
"item_img": "",
"item_title": "example",
"item_price": 5,
"item_quantity": 100,
"item_quality": "New",
"item_stars": 4.5
},
"private": {}
}
]
}
]
What i want is to read the data in "listings" -> "public", like "item_id"...
This wont iterate it just gives me a blank page with no errors nor warnings :
{listingsApi.map(currentListings => (
<p>{currentListings.listings.public.item_id}</p>
))}
BTW I 100% messed up the map code. Any clue?
{currentListings.listings.public.item_name}
{currentListings.listings.public.item_name}
| ^ – Tsujimar May 14 '22 at 23:26