# how to access session variable list..

**URL:** <https://community.gatling.io/t/how-to-access-session-variable-list/3665>\
**Category:** Gatling (Open-Source)\
**Created:** [April 10, 2017, 6:18pm UTC](https://community.gatling.io/t/how-to-access-session-variable-list/3665 "2017-04-10T18:18:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vamsi](https://avatars.discourse-cdn.com/v4/letter/v/b38774/32.png) [@Vamsi](https://community.gatling.io/u/Vamsi)\
**Post date:** [April 10, 2017, 6:18pm UTC](https://community.gatling.io/t/how-to-access-session-variable-list/3665/1 "2017-04-10T18:18:42Z")

</div>

I want to loop through a JSON array which is obtained from the response of a REST service.

I’m saving it as myid =\> jsonPath("$…id").findAll.saveAs(“myid”)).

example: myid = Vector(565, 656, 945, 444)

how can I access the first element(564) in myid?

---

<div class="post-metadata">

**Author:** ![Nikolay\_Degkin](https://avatars.discourse-cdn.com/v4/letter/n/a6a055/32.png) [@Nikolay\_Degkin](https://community.gatling.io/u/Nikolay_Degkin)\
**Post date:** [April 11, 2017, 9:56am UTC](https://community.gatling.io/t/how-to-access-session-variable-list/3665/2 "2017-04-11T09:56:17Z")

</div>

It’s here - [http://gatling.io/docs/2.2/session/expression\_el/](http://gatling.io/docs/2.2/session/expression_el/)

`.get("${myid(0)}")`
