I am having a json text file as :
[
{
"productId":"17213812",
"returnPolicies": {
"user":"Regular Guest"
}
},
{
"productId":"17813832",
"returnPolicies":[]
}
]
and I am getting error for returnPolicies
since it has different properties. But I want only returnpoliciesuser
so If i use e.returnpolicies.user
it is showing error for second array..
Anyone knows how to skip "returnPolicies":[]
and search only e.returnpolicies.user("returnPolicies":{"user":"Regular Guest"})
?