# org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Unexpected end-of-input in VALUE\_STRING

**URL:** <https://community.gatling.io/t/org-springframework-http-converter-httpmessagenotreadableexception-json-parse-error-unexpected-end-of-input-in-value-string/5124>\
**Category:** Gatling (Open-Source)\
**Created:** [July 14, 2019, 10:34pm UTC](https://community.gatling.io/t/org-springframework-http-converter-httpmessagenotreadableexception-json-parse-error-unexpected-end-of-input-in-value-string/5124 "2019-07-14T22:34:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lin\_Green](https://avatars.discourse-cdn.com/v4/letter/l/e47774/32.png) [@Lin\_Green](https://community.gatling.io/u/Lin_Green)\
**Post date:** [July 14, 2019, 10:34pm UTC](https://community.gatling.io/t/org-springframework-http-converter-httpmessagenotreadableexception-json-parse-error-unexpected-end-of-input-in-value-string/5124/1 "2019-07-14T22:34:26Z")

</div>

Hi Gatling Group

Wanted to ask about how you are meant to pass values in a .json file to a gatling feeder successfully (v 3.0.0)? I’m getting a JSON parse error right now and I suspect it’s because its cutting off the first json element called “data”.

Here is my code:

```auto
val partyEventRequestName = "PartyEvent-Request"
val partyEventFeeder = jsonFile("fem/data/partyevents.json").circular
val partyEventScenarioBuilder = scenario("PartyEvent-Scenario").during(InputValues.runDurationSeconds seconds) {

feed(partyEventFeeder)
      .exec(
        http(partyEventRequestName)
          .post(InputValues.partyEventURI)
// .body(StringBody("""{"data":{"type":"partyEvent","attributes":{"gcisPartyId":null,"actionSuccessful":true,"actionErrors":null,"partyAttributes":{"actionType":"Authenticate"}}}}"""))
          .body(StringBody(""""${data}""")).asJson
          .headers(InputValues.commonHeaders)
          .header("X-REQUEST-ID", "GATLING-" + randomUUID().toString)
          .check(status.is(202))
      )
}

```

Here is my partyevents.json file (with just one entry in there for now, although I’d like to add more):

```auto
[
  {
    "data": {
      "type": "partyEvent",
      "attributes": {
        "gcisPartyId": null,
        "actionSuccessful": true,
        "actionErrors": null,
        "partyAttributes": {
          "actionType": "Authenticate"
        }
      }
    }
  }
]

```

The gatling debug output shows:

---

<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 15, 2019, 5:32am UTC](https://community.gatling.io/t/org-springframework-http-converter-httpmessagenotreadableexception-json-parse-error-unexpected-end-of-input-in-value-string/5124/2 "2019-07-15T05:32:39Z")

</div>

> (v 3.0.0)?

From [https://groups.google.com/forum/#!forum/gatling](https://groups.google.com/forum/#!forum/gatling):

When asking for help, please first:

- Check the [documentation](http://gatling.io/docs/)
- **Provide the version of Gatling you’re using. Prior to posting, check if you’re running an one and upgrading doesn’t fix your problem.**
- Check this Group’s archives, someone might have asked the same question before you

---

<div class="post-metadata">

**Author:** ![Lin\_Green](https://avatars.discourse-cdn.com/v4/letter/l/e47774/32.png) [@Lin\_Green](https://community.gatling.io/u/Lin_Green)\
**Post date:** [July 16, 2019, 10:10pm UTC](https://community.gatling.io/t/org-springframework-http-converter-httpmessagenotreadableexception-json-parse-error-unexpected-end-of-input-in-value-string/5124/3 "2019-07-16T22:10:21Z")

</div>

Yes version 3

```auto
<gatling.version>3.0.0</gatling.version>

```

```auto
<dependency>
    <groupId>io.gatling.highcharts</groupId>
    <artifactId>gatling-charts-highcharts</artifactId>
    <version>${gatling.version}</version>
</dependency>

```
