I have a settled JSON structure, I'm utilizing objectpath (python API rendition), yet I don't see how to choose and channel some data (all the more unequivocally the settled data in the structure).
EG. I need to choose the "description" of the activity "reading" for the client "John".
JSON:
{
"user":
{
"actions":
[
{
"name": "reading",
"description": "blablabla"
}
]
"name": "John"
}
}
Code:
$.user[@.name is 'John' and @.actions.name is 'reading'].actions.description
But, it's not working. Can anyone help me?