ELFileBody keys ordering

Hi,

I would like to compare output from jsonPath with ELFileBody mapped to Json string.
My check looks like this:

.check(jsonPath("$").is(ELFileBody("default.json").map(string => toJsonString(string))))

The issue is that what I receive from jsonPath has keys sorted alphabetically, so I need to sort my ELFileBody by keys also before mapping it to string. Any suggestion how to do that?

Thanks in advance,
Michał

Hi,

This is a bug/limitation of Boon. Jackson does preserve attribute order.

See https://github.com/gatling/gatling/issues/2899 for full description and workaround.

Cheers,

Hi Stephane,

Thanks, it works.

Cheers,
Michał