Passing json number datatypes into dynamic ELFileBody


I have scenarios that make use of a .csv feeder and inject variables into .json body for POST requests

val scn = scenario(“Baseline”) // Scenario Definition
.exec(http(“Post PDP Single Sku Delivery Promise”)
.header(“Authorization”, s"Bearer $token")
.header(“Content-Type”, “application/json”)
.pause(2, 5)

the .json body makes use of substitution like this

“dispatchPoint”: “${dispatchPoint}”,

but how would i pass in json number type fields?

I solved it by the way

You just use the same substitution variable


“myJsonNumberType”: ${myJsonNumberType}

… i was being confused by the intellij editor which was complaining that it wasn’t valid json