# How can I convert Stats.json file in target\>js section to csv file

**URL:** <https://community.gatling.io/t/how-can-i-convert-stats-json-file-in-target-js-section-to-csv-file/4142>\
**Category:** Gatling (Open-Source)\
**Created:** [January 26, 2018, 1:55am UTC](https://community.gatling.io/t/how-can-i-convert-stats-json-file-in-target-js-section-to-csv-file/4142 "2018-01-26T01:55:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Priya\_Anandh](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@Priya\_Anandh](https://community.gatling.io/u/Priya_Anandh)\
**Post date:** [January 26, 2018, 1:55am UTC](https://community.gatling.io/t/how-can-i-convert-stats-json-file-in-target-js-section-to-csv-file/4142/1 "2018-01-26T01:55:13Z")

</div>

**How can I convert stats.json file in target\>js section to csv file ???**

---

<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:** [January 29, 2018, 2:23pm UTC](https://community.gatling.io/t/how-can-i-convert-stats-json-file-in-target-js-section-to-csv-file/4142/2 "2018-01-29T14:23:45Z")

</div>

You can write your own parser and execute it as a post-build action

---

<div class="post-metadata">

**Author:** ![Priya\_Anandh](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@Priya\_Anandh](https://community.gatling.io/u/Priya_Anandh)\
**Post date:** [January 30, 2018, 12:04am UTC](https://community.gatling.io/t/how-can-i-convert-stats-json-file-in-target-js-section-to-csv-file/4142/3 "2018-01-30T00:04:50Z")

</div>

I found a library in maven that can convert JSON to CSV. But the out I am getting is not formatted as I wanted.

The library I used is …

```auto
<dependency>
    <groupId>com.github.agourlay</groupId>
    <artifactId>json-2-csv_2.12</artifactId>
    <version>0.3.0</version>
</dependency>

```

```auto

```

```auto

```

```auto

```
