Hi
I have a variable called updatedTickets that has the following -
{“id”:“Vector(53216e5a-9de9-49df-a63c-c0354f3d923b, fc47251b-7948-4865-a20e-4474b93052ba)”}
I would like to use just the values of the vector in the subsequent call
i.e I would like the body to be -
{ "id": ["53216e5a-9de9-49df-a63c-c0354f3d923b", "fc47251b-7948-4865-a20e-4474b93052ba"] }
This doesn’t work as it sends everything
.exec(http(“POST to Encrypted Tickets”)
.post("/planner_tools/v1/event_api/events/${eventId}/tickets_encrypted")
.body(StringBody( “”"{“id”:"${updatedTickets}"}""")).asJSON
.check(bodyString.exists)
.check(status.is(200)))
How do I send just the values?
Thank you
p.s - Sorry if this is more scala vs gatling, still trying to get the hang of this.
`
`
.exec(http(“POST to Encrypted Tickets”)
.post("/planner_tools/v1/event_api/events/${eventId}/tickets_encrypted")
.body(StringBody( “”"{“id”:"${updatedTickets}"}""")).asJSON
.check(bodyString.exists)
.check(status.is(200)))