# Custom validator

**URL:** <https://community.gatling.io/t/custom-validator/3841>\
**Category:** Gatling (Open-Source)\
**Created:** [July 21, 2017, 10:34am UTC](https://community.gatling.io/t/custom-validator/3841 "2017-07-21T10:34:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maksym\_Max](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@Maksym\_Max](https://community.gatling.io/u/Maksym_Max)\
**Post date:** [July 21, 2017, 10:34am UTC](https://community.gatling.io/t/custom-validator/3841/1 "2017-07-21T10:34:49Z")

</div>

We are using Gatling as a stress test and in the same way as a API integration test framework and in this case we need to generate json requests and recieve json response, validate mapping and in the same way values. For now I just use standard checks with a Jsonpath and Gson classes for request building.  
But may be there is some way to build custom validator with a combination with some Json parser like Play, Boon or Jackson in order to validate response.  
Maybe someone know the proper way how to deal with this?

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [July 22, 2017, 8:39am UTC](https://community.gatling.io/t/custom-validator/3841/2 "2017-07-22T08:39:47Z")

</div>

[https://github.com/gatling/gatling/blob/master/gatling-core/src/main/scala/io/gatling/core/check/CheckBuilder.scala#L159-L166](https://github.com/gatling/gatling/blob/master/gatling-core/src/main/scala/io/gatling/core/check/CheckBuilder.scala#L159-L166)
