Skip to content

Commit cf3c776

Browse files
committed
Increment encoding limit by 1 to match decoding behavior
1 parent cc424ff commit cf3c776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FoundationEssentials/JSON/JSONWriter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
internal struct JSONWriter {
1414

1515
// Structures with container nesting deeper than this limit are not valid.
16-
private static let maximumRecursionDepth = 512
16+
private static let maximumRecursionDepth = 513
1717

1818
private var indent = 0
1919
private let pretty: Bool

0 commit comments

Comments
 (0)