String conversions

Hi , i am saving the response body from a post operation to a string and while trying to pass it to another post request , the request fails because the key is passed in double quotes . How to remove the double quotes, i have tried using substring and various other methods.

object AppRegistration
{
val appRegistration = exec(http(“Application Registration”)
.post("/abc")
.body(ElFileBody(“AppRegistration.json”)).asJson
.check(bodyString.saveAs(“post”))
)
.pause(10)
}

object AppInstallation {

val appinstallation = exec(http(“Install application”)
.post("/abc/"${post}"/xyz")

The resulting post request when i run the above code is as follows:

/abc/%2276e211bf-2f32-44fa-8e03-6e7652d5cca5%22"/xyz

I want the post request to be :
/abc/76er11bf-2l32-44fa-8j03-6e7652d5hhj5/xyz

i tried printing the output of the ${post} and the output is as follows:

“76er11bf-2l32-44fa-8j03-6e7652d5hhj5”

any help appreciated ,

Thanks.

Use transform in your check to remove the quotes: https://gatling.io/docs/current/http/http_check/#transforming

Thanks Stephane the transform worked.