MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / sorts_object_keys

Function sorts_object_keys

atomic-canonical/src/jcs.rs:137–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135
136 #[test]
137 fn sorts_object_keys() {
138 let v = json!({ "b": 1, "a": 2, "c": 3 });
139 assert_eq!(canonicalize(&v), r#"{"a":2,"b":1,"c":3}"#);
140 }
141
142 #[test]
143 fn no_insignificant_whitespace_and_nesting() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected