Gatling Transform a JSON Response

How do I transform the JSON response body from -

{ “data”: [ { “id”: “1”, “isEditable”: false }, { “id”: “2”, “isEditable”: true } ] }

To this-

{ “data”: [ { “id”: “2”, “isEditable”: true } ] }

How can we use .transformResponse here to do the same?

Any help will be much appreciated.

Hi,

If the Response/response structure isn’t going to change you can simply use the replaceAll function.

Regards,
Aravind