3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-20 07:05:44 +01:00

Answer architecture round 1: the guard refuses only the measured overflow errors, the README keeps such a document read-only, and items 106 and 107 take the heap and the carry's indentation

This commit is contained in:
2026-10-11 20:40:21 +02:00
parent 88773d50b9
commit 0227c0b0cc
6 changed files with 42 additions and 7 deletions
+4 -1
View File
@@ -8,7 +8,10 @@ type Pending = string | { depth: number; value: JsonValue }
export function serializeCanonicalJson(value: JsonValue, spelling: JsonSpelling): string {
const text: string[] = []
writeCanonicalJson(value, spelling, (piece) => text.push(piece) > 0)
writeCanonicalJson(value, spelling, (piece) => {
text.push(piece)
return true
})
return text.join('')
}