I am doing a get request on JS and with the json reponse i want to get some values, for example product and color, but i don't know how i can go more deeper on the next levels of the objects of the Json.
the Json:
{
"items": {
"1man": {
"312favorites": {
"155description": {
"color": "red",
"price": 2.76666
}
}
}
}
}
I just can go until the 1man level i don't know how to get the next levels, my code until now
console.log(response.data.items['1man']);
If i try for example console.log(response.data.items['1man'].312favorites i get error on VScode, i want go to until the color value...
Does someone can help me here?
response.data.items['1man']['312favorites']['155description'].color