# How to log JSON response?

**URL:** https://community.gatling.io/t/how-to-log-json-response/929
**Category:** Gatling (Open-Source)
**Created:** [April 7, 2014, 8:59am UTC](https://community.gatling.io/t/how-to-log-json-response/929 "2014-04-07T08:59:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ictest0214](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@ictest0214](https://community.gatling.io/u/ictest0214)
#### Post date: [April 7, 2014, 8:59am UTC](https://community.gatling.io/t/how-to-log-json-response/929/1 "2014-04-07T08:59:09Z")

</div>

Hi,

My response returns JSON value, how do i setup to log that value to a file or view on console? i need to check if value is correct.  
I setup:  
  
but it just returns common information.

Thanks.

---

<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: [April 7, 2014, 9:01am UTC](https://community.gatling.io/t/how-to-log-json-response/929/2 "2014-04-07T09:01:04Z")

</div>

[https://github.com/excilys/gatling/wiki/HTTP#chunks-discarding](https://github.com/excilys/gatling/wiki/HTTP#chunks-discarding)

---

<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: [April 7, 2014, 9:14am UTC](https://community.gatling.io/t/how-to-log-json-response/929/3 "2014-04-07T09:14:29Z")

</div>

I've just made this way more convenient in Gatling 2:  
[https://github.com/excilys/gatling/issues/1780](https://github.com/excilys/gatling/issues/1780)
