Can't get a JSONPath to work.
JSON:
{
"data": [
{
"meta": {
"definition": {
"title": "ID",
"type": "text",
"key": "657876498"
}
},
"attributes": {
"id": "8606798",
"name": "ID",
"content": {
"value": "ABC"
}
}
}
]
}
Path:
$.data[*].attributes[?(@.name=='ID')]
Which returns no match on jsonpath.com or using jsonpath-ng
in python.
What am I fundamentally missing that this filter isn't working?
Note: End goal would be to get name
and content.value
.
EDIT:
On https://jsonpath.herokuapp.com/ the path actually works. hm...implementation dependent?