Can you write examples in Python and Javascript where you'd extract those titles from an arbitrary JSON structure? ;-)
How would one use JSONPath to extract all book titles from an arbitrary JSON structure?
Also, when might that use case apply? I can't think of when I've ever needed to do something like this, but I'm interested in learning. :)
$..book[?@.price<10].title
find_key = (data, key) => { if(data instanceof Array){ return data.map(x=>find_key(x, key)).flat() } if(data instanceof Object){ let res = Object.keys(data).map(x=>find_key(data[x], key)) if(data.hasOwnProperty(key)){ res.push(data[key]) } return res.flat() } return [] } find_key(data, "book").filter(x=>x.price < 10).map(x=>x.title)