I have created the following json :
{
"emails": [
{
"someval": 0,
"otherval": 2
}
]
}
and I try to accessit like so :
priceObj.IntOf(".emails[0].otherval")
priceObj.IntOf(".emails.otherval")
The output is 0 (invalid), tried my best to solve this but could not.
Can you please tell me how can I acces the value of "otherval" using path ? Thanks in advance.