Closed
Description
Currently when you build up a Json object and write it to a file using json::to_pretty_writer
, the order of the keys in objects is random.
There are two possible improvements that come to mind:
-
Write objects based on the natural sort order of the keys
-
Write objects based on the order in which keys were added to the object
Most mature JSON libraries I've used do #2, but even #1 would be an acceptable first step to getting deterministic serialized output.
Metadata
Metadata
Assignees
Labels
No labels