I have data in JSON format and it looks like this:
{
"book": [{
"category": "reference",
"author": "Nigel Rees",
"title": "Sayings of the Century",
"price": 8.95
}, {
"category": "fiction",
"author": "Evelyn Waugh",
"title": "Sword of Honour",
"price": 12.99
}]
}
I want to extract only values corresponding to each object inside 'book' in form of array.
My output should look something like this:
[
"reference",
"Nigel Rees",
"Sayings of the Century",
8.95
],
[
"fiction",
"Evelyn Waugh",
"Sword of Honour",
12.99
]
Is there any way to do something like this using JSONPath Expression.