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

Function escapes_strings

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

Source from the content-addressed store, hash-verified

154
155 #[test]
156 fn escapes_strings() {
157 let v = json!({ "k": "a\"b\nc" });
158 assert_eq!(canonicalize(&v), r#"{"k":"a\"b\nc"}"#);
159 }
160
161 /// RFC 8785 §3.2.3: keys sort by UTF-16 code units. A supplementary-plane
162 /// key (😀, surrogate pair D83D DE00) must sort BEFORE U+FF61 (。) — the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected