Posting JSON array to api

I am new to Gatling and Scala and have read every post I can find on this topic and cannot see what I have wrong. I am trying to POST a JSON array to an api, here is my code and the error I am getting:

http(“create a store”)
.body("""{ “tlc”: “TS9” }""").asJSON

.queryParam(“access_token”, “${myAccessToken}”)

13:20:59.052 [ERROR] i.g.a.ZincCompiler$ - /Users/xxxxxx/Node/working/gatling/user-files/simulations/sage.scala:114: type mismatch;
found : String("{ “tlc”: “TS9” }")
required: io.gatling.http.request.Body
13:20:59.055 [ERROR] i.g.a.ZincCompiler$ - .body("""{ “tlc”: “TS9” }""").asJSON
13:20:59.056 [ERROR] i.g.a.ZincCompiler$ - ^
13:20:59.166 [ERROR] i.g.a.ZincCompiler$ - one error found
Exception in thread “main” Compilation failed

FYI in this test, I have lots of GET requests working perfectly with the same urlPrefix, access token and headers. My version of Gatling is 2.0.

Thanks in advance for your help.


.body("""{ “tlc”: “TS9” }""").asJSON

This is Gatling 2 syntax. As stated on (almost) every wiki pages, the wiki targets mostly Gatling 1.
Regarding Gatling 2, you have to check the dedicated page.
The solution to your problem is here: 2#bodies

Thank you!