# How to use a json response as a feeder to the scenarios in gatling

**URL:** <https://community.gatling.io/t/how-to-use-a-json-response-as-a-feeder-to-the-scenarios-in-gatling/3063>\
**Category:** Gatling (Open-Source)\
**Created:** [June 9, 2016, 10:34pm UTC](https://community.gatling.io/t/how-to-use-a-json-response-as-a-feeder-to-the-scenarios-in-gatling/3063 "2016-06-09T22:34:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaibal\_Chakraborty](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@Shaibal\_Chakraborty](https://community.gatling.io/u/Shaibal_Chakraborty)\
**Post date:** [June 9, 2016, 10:34pm UTC](https://community.gatling.io/t/how-to-use-a-json-response-as-a-feeder-to-the-scenarios-in-gatling/3063/1 "2016-06-09T22:34:17Z")

</div>

i have done below to save the json response

```auto
val scn = scenario("feeder element")
  .exec(http("get feeder element")
    .get(siteUrl + "/content/ffx/print-authoring/en/newsholes/FNZ/DPT/2016/05/30.cards.html")
    .check(jsonPath("$..pageCards").find.saveAs("json")))
  .exec(session => {
    val response = session.get("json").asOption[String]
    println(response)
    session
  })

```

now i have “response” which i want to feed in to scenario, something like this

```auto
val myfeeder = jsonFile("response")
something...
something...

but don't know what to do next.please help!

Regards

```
