Json Operators
//dummy json
{
"users": [
{
"id": 1,
"name": "Alice"
},
{
"id": 2,
"name": "Bob"
}
]
}1
2
3
Last updated
//dummy json
{
"users": [
{
"id": 1,
"name": "Alice"
},
{
"id": 2,
"name": "Bob"
}
]
}Last updated
// Some code
jsonGet(response.data, 'users[0].id');
//Note: the second argument is always surrounded by single quotes.
//response.data : entire json data
// users[0].id : value which you want to access from json.
// It will give us a value which is 1