Shortest path from Map to JSON?

I want to build a JSON request body from a Map. Well, technically, from non-null optional function parameters, but I figure going from that to a Map is easy.

I’m betting you have buried somewhere in the code base a really easy way to go from a Map to a JSON string, don’t you?

Yes sir!

https://github.com/gatling/gatling/blob/master/gatling-core/src/main/scala/io/gatling/core/json/Jackson.scala#L54

I knew you would. :slight_smile: