I'm trying to extract the JSON block from the HTTP response and depending on the condition, I want to extract a particular block of JSON. For eg.:
{
"store": {
"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
}
],
"bicycle": {
"color": "red",
"price": 19.95
}
},
"expensive": 10
}
From the above JSON response, I want a block of a particular book where, price is less than 10 i.e.
{
"category": "reference",
"author": "Nigel Rees",
"title": "Sayings of the Century",
"price": 8.95
}
I'm trying to use JSON Extractor in JMeter 5.0.
Please help.
Thanks, Sid
