MCPcopy
hub / github.com/uber-go/zap / jsonEncoder

Struct jsonEncoder

zapcore/json_encoder.go:54–63  ·  zapcore/json_encoder.go::jsonEncoder

Source from the content-addressed store, hash-verified

52}
53
54type jsonEncoder struct {
55 *EncoderConfig
56 buf *buffer.Buffer
57 spaced bool // include spaces after colons and commas
58 openNamespaces int
59
60 // for encoding generic values by reflection
61 reflectBuf *buffer.Buffer
62 reflectEnc ReflectedEncoder
63}
64
65// NewJSONEncoder creates a fast, low-allocation JSON encoder. The encoder
66// appropriately escapes all field keys and values.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected