Sort JSON/Map structure in clojure before serializing to string
I'm using json/write-str to serialize a nested JSON object to string. Example data: { :c 1 :a { :d 0 :c 1 :e { :a 0 :1 4 }}} ; json/write-str ; output {"c":1,"a":{"d":0,"c":1,"e":{"a":0,"1":4}}} Expected output {"a":{"c":1,"d":0,"e":{"1":4,"a":0}},"c":1} This can be…