Why is the preservation of the order of the name/value pairs important? Relying on the order of the pairs goes directly against the JSON specification which says "An object is an unordered set of name/value pairs."
I know the Json specs, but it would be nice for ToPrettyPrint (used for documentation for example): e.g. the id is always the first and not somewhere in the middle of the json file.
1. It means that all JSON maps will be LinkedHashMaps and it will have a small performance overhead. It is possible that in some use cases the performance penalty will be significant.
2. It can only be done in B4J.
I tried the above mentioned lib, but it had the same result. I do understand why you do not want it in the official lib so I will build my own as for my documentation app this is really needed.