Using Gatling 2.2.0 (pre-release version)
There an API that contains locations which is Hash/Map of String to Int. I have saved this into a session attribute. I am trying to extract the keys from this Hash for building out other API calls. But, I am getting stuck extracting the value from the session attribute.
JSON:
“locations”: {
“/href/10592”: 373,
“/href/10663”: 6032,
… }
Using
.check(jsonPath("$.locations").find.saveAs(“locs”))
Using println, I can see that this Session attribute looks like:
locs → {"/href/10592":373,"/href/10663":6032, …}
Regards
Sajjad