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: 1) Write objects based on the natural sort order of the keys 2) 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.