Open AndreaCrotti opened 4 months ago
I just tried one little change https://github.com/dakrone/cheshire/pull/207 but unfortunately that's not enough, it still does not work
I have a bit similar use-case. I'm using cheshire for pretty-printing JSON.
So I'm reading the JSON from file and then using parse-stream
and generate-string
with pretty printing options, and the end result is a pretty printed JSON file but the order of the keys is changed. Would be nice if there was an option in Cheshire to keep the order of the keys.
Is there any possible way to make something like that work? I have massive JSON files (on single lines so no spacing issues) and for annoying reasons, I have to regenerate exactly the same thing after I parse it. It works more or less randomly, but I sometimes get the keys in the maps in a different order, is there any way to make that deterministic?
It's probably just because parsing will generate non sorted maps, is there any way to make Cheshire use sorted maps?