[Feedback] Looking for feedback on optional parameters in a JSON POST request body


I’ve implemented a working approach to build request string body with optional parameters. I would like your feedback, and/or opinion on such approach, or even if there are better ways to accomplish this.

Here’s the link to the Gist with the implementation:

– Carlos Torres

Yep, that’s how I’d do it. I would just probably get rid of the stripMargin though, for performance reason as it would happen every time.

Awesome, thanks for the tip. I just wanted to get some feedback before I start rolling out this approach on some new tests I have to write where I need to handle optional parameters.

Again, thanks for your amazing work, and putting all this effort and energy to Gatling and the community.

– Carlos Torres

Thanks for your kind words :slight_smile: