()
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected