Config controls opt-in parsing extensions. The zero value is strict and accepts only RFC 8259 JSON strings and escapes. SYS-REQ-115
| 9 | // accepts only RFC 8259 JSON strings and escapes. |
| 10 | // SYS-REQ-115 |
| 11 | type Config struct { |
| 12 | AllowSingleQuotes bool // #160: accept 'key':'value' alongside "key":"value" |
| 13 | AllowUnknownEscapes bool // #115: accept unknown escape sequences instead of erroring |
| 14 | MaxBufferSize int // ReaderParser sliding-window target; zero uses the 64 MiB default |
| 15 | } |
| 16 | |
| 17 | // DefaultConfig is the strict parser configuration used by package-level |
| 18 | // functions. |
nothing calls this directly
no outgoing calls
no test coverage detected