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:
@@ -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('')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user