MCPcopy Create free account
hub / github.com/buger/jsonparser / Config

Struct Config

config.go:11–15  ·  view source on GitHub ↗

Config controls opt-in parsing extensions. The zero value is strict and accepts only RFC 8259 JSON strings and escapes. SYS-REQ-115

Source from the content-addressed store, hash-verified

9// accepts only RFC 8259 JSON strings and escapes.
10// SYS-REQ-115
11type 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected