I've a nested json structure, I'm using objectpath (python API version), but I don't understand how to select and filter some information (more precisely the nested information in the structure).
EG. I want to select the "description" of the action "reading" for the user "John".
JSON:
{
"user":
{
"actions":
[
{
"name": "reading",
"description": "blablabla"
}
]
"name": "John"
}
}
CODE:
$.user[@.name is 'John' and @.actions.name is 'reading'].actions.description
but it doesn't work (empty set but in my JSON it isn't so). Any suggestion?
name: valueinside an array.