Elektrine lite

← Feed

@Pol@mathstodon.xyz

Post #1592976

2026-04-22 20:26 UTC

Happy to share that I have published my first crate. It is called `json-sort`: a small Rust CLI for deterministic JSON sorting. Find it at https://crates.io/crates/json-sort

Replies (1)

  • @kpcyrd@chaos.social 2026-04-22 23:52

    @Pol@mathstodon.xyz Nice, congrats! I noticed there's some json parsing code in there, you might be able to use serde_json::from_str and serde_json::Value. When you enable the indexmap feature the dict/map variant should retain the original key order. :)

    Open ##2457011