https://bz.apache.org/bugzilla/show_bug.cgi?id=65299
--- Comment #1 from Felix Schumacher <[email protected]> --- Created attachment 37855 --> https://bz.apache.org/bugzilla/attachment.cgi?id=37855&action=edit Compare JSON objects and not their string representations. When using our stringifier, the order of the entries in maps is not guaranteed and can lead to wrong results. In the old days we made no difference between a string or int when asserting a result. Jackson JSON Parser differentiates between 'foo' and '"foo"' (former is invalid) and '1' and '"1"' (former is an int, latter a string). To enable both (complex, simple and edge cases), we now have to do more work. @OP I saw no guarantees from Gson#toJson(obj) that it prints keys in a stable way. You might have been lucky with your experiments. Could you try the attached patch and report, if it works for you? -- You are receiving this mail because: You are the assignee for the bug.
