I have a request that is like the following…
`
val bodyJson = “”"{“id”:“001”, “heading”:“Dear ${first_name}”}"""
val httpRequest = http(“Some Request”)
.post("/someservice")
.header(“Authorization”, “${access_token}”)
.body(StringBody(bodyJson))
.asJSON
`
I need “Dear ${first_name}” to be literal. How do I escape the text “${first_name}” so that it will not get processed as a session variable? I’ve tried various means of escaping special chars, but nothing’s working. My current work around is to set the following before executing the request, but that seems extremely janky AND adds an extra step to all of my chains.
`
.exec(session => session.set(“first_name”, “${first_name}”))
`
Thanks,
Christian