maciejhirsz / json-rust

JSON implementation in Rust
Apache License 2.0
563 stars 63 forks source link

Support a deterministic `dump()` #186

Open njaard opened 4 years ago

njaard commented 4 years ago

Right now, dump() is not deterministic because the internal HashMap is not deterministic.

It should be possible to ask dump() to sort object keys before outputting them. This makes debugging and testing application code a lot easier.