I need to get the parameter that comes in the API json, which is not a vector. And use only one of the values of the parameters that came. How do I do that?
For example, see the case below.
{
“name”: “Product A”,
“price”: 150,
“features”: {
“speed”: 5,
“weight”: 20
},
“tags”: [
{ “id”: 1 },
{ “id”: 3 },
{ “id”: 5 }
]
}
How could I get the parameter ‘‘name’’ itself, not the value of it (Product A)? I need this because the parameters I get are variable.
Thanks