I'm trying to return the full parent object when the url = 'www.fruits.com'
Below is the json schema. It's quite tricky
{
"produce": [
{
"type": "fruit",
"upc": {
"code": {
"codingList": [
{
"item": "apple",
"organizations": [
{
"url": "www.fruits.com"
}
]
}
]
}
}
},
{
"type": "fruit",
"upc": {
"code": {
"codingList": [
{
"item": "tomato",
"organizations": [
{
"url": "www.special-fruits.com"
}
]
}
]
}
}
}
]
}
Any help would be much appreciated.
i've tried several different method on jsonpath.com but have not been able to crack it.
{ "produce": ... }or do you want the item in theparentsarray?