Given the JSON below:
{
"store": {
"book": [
{
"author": "Nigel Rees",
"title": "Sayings of the Century"
},
{
"category": "fiction",
"title": "Sword of Honour",
"price": 12.99
}
]
}
How can I construct a JSON path to retrieve the book
elements that have category
, price
, and title
elements? I've tried $.store.book[?(@.price && @.category && @.title)]
but that doesn't work (it seems that kind of predicate doesn't allow for multiple conditions?)