This is an issue I am trying to solve for work. We are using the Json Parser that comes part of the Vert.x library for Java.
I need a way to serialize json, so when the generated code is done o in alphabetical order, as the json is going to used for a list of rules for our application.
Since the rule file is over 2000 lines, I want to use a json generator so the rule file is easier to maintain, however it needs to be alphabetically sorted otherwise it will be difficult to read in a PR.
I have tried a few attempts to configure the underlining Jackson Serializer to enable sorting, but so far it has not generated the Json in an alphabetical order.