# Json path to extract based on particular value

**URL:** <https://community.gatling.io/t/json-path-to-extract-based-on-particular-value/585>\
**Category:** Gatling (Open-Source)\
**Created:** [September 17, 2013, 5:55am UTC](https://community.gatling.io/t/json-path-to-extract-based-on-particular-value/585 "2013-09-17T05:55:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guruprasad\_G](https://avatars.discourse-cdn.com/v4/letter/g/7c8e57/32.png) [@Guruprasad\_G](https://community.gatling.io/u/Guruprasad_G)\
**Post date:** [September 17, 2013, 5:55am UTC](https://community.gatling.io/t/json-path-to-extract-based-on-particular-value/585/1 "2013-09-17T05:55:15Z")

</div>

I have scenario in gatling where i need to extract particular JSON value. For eg: I want to extract author of book title “Sayings of the Century”. I am using following `Jsonpath $..book[?(@.title eq 'Sayings of the Century')]`. But its not returning me anything. Can you tell me how to achieve this.

{ “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  
},  
{ “category”: “fiction”,  
“author”: “Herman Melville”,  
“title”: “Moby Dick”,  
“isbn”: “0-553-21311-3”,  
“price”: 8.99  
},  
{ “category”: “fiction”,  
“author”: “J. R. R. Tolkien”,  
“title”: “The Lord of the Rings”,  
“isbn”: “0-395-19395-8”,  
“price”: 22.99  
}  
],  
“bicycle”: {  
“color”: “red”,  
“price”: 19.95  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [September 17, 2013, 7:46am UTC](https://community.gatling.io/t/json-path-to-extract-based-on-particular-value/585/2 "2013-09-17T07:46:09Z")

</div>

The correct syntax is ==, not eq.
