You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6
Original file line number
Diff line number
Diff line change
@@ -114,6 +114,12 @@ Forbidden basic types:
114
114
Any composed types (struct, map, slice, array) containing a forbidden basic type. Any map
115
115
using a key with a forbidden type (`bool`, `float32`, `float64`, `struct`).
116
116
117
+
## Accepted edge case
118
+
119
+
For `encoding/json.MarshalIndent`, there is a (pathological) edge case, where this
120
+
function could [return an error](https://cs.opensource.google/go/go/+/refs/tags/go1.18:src/encoding/json/scanner.go;drc=refs%2Ftags%2Fgo1.18;l=181) for an otherwise safe argument, if the argument has
121
+
a nesting depth larger than [`10000`](https://cs.opensource.google/go/go/+/refs/tags/go1.18:src/encoding/json/scanner.go;drc=refs%2Ftags%2Fgo1.18;l=144) (as of Go 1.18).
122
+
117
123
## Bugs found during development
118
124
119
125
During the development of `errcheckjson`, the following issues in package `encoding/json` of the Go standard library have been found and PR have been merged:
0 commit comments