type encoding/json/jsontext.Decoder
70 uses
encoding/json/jsontext (current package)
decode.go#L78: type Decoder struct {
decode.go#L122: func NewDecoder(r io.Reader, opts ...Options) *Decoder {
decode.go#L123: d := new(Decoder)
decode.go#L132: func (d *Decoder) Reset(r io.Reader, opts ...Options) {
decode.go#L165: func (d *Decoder) Options() Options {
decode.go#L314: func (d *Decoder) PeekKind() Kind {
decode.go#L413: func (d *Decoder) SkipValue() error {
decode.go#L469: func (d *Decoder) ReadToken() (Token, error) {
decode.go#L677: func (d *Decoder) ReadValue() (Value, error) {
decode.go#L1136: func (d *Decoder) InputOffset() int64 {
decode.go#L1155: func (d *Decoder) UnreadBuffer() []byte {
decode.go#L1183: func (d *Decoder) StackDepth() int {
decode.go#L1200: func (d *Decoder) StackIndex(i int) (Kind, int64) {
decode.go#L1213: func (d *Decoder) StackPointer() Pointer {
export.go#L58: func (export) Decoder(d *Decoder) *decoderState { return &d.s }
export.go#L74: func (export) GetBufferedDecoder(b []byte, o ...Options) *Decoder {
export.go#L77: func (export) PutBufferedDecoder(d *Decoder) {
export.go#L81: func (export) GetStreamingDecoder(r io.Reader, o ...Options) *Decoder {
export.go#L84: func (export) PutStreamingDecoder(d *Decoder) {
pools.go#L119: bufferedDecoderPool = &sync.Pool{New: func() any { return new(Decoder) }}
pools.go#L125: streamingDecoderPool = &sync.Pool{New: func() any { return new(Decoder) }}
pools.go#L132: func getBufferedDecoder(b []byte, opts ...Options) *Decoder {
pools.go#L133: d := bufferedDecoderPool.Get().(*Decoder)
pools.go#L137: func putBufferedDecoder(d *Decoder) {
pools.go#L142: func getStreamingDecoder(r io.Reader, opts ...Options) *Decoder {
pools.go#L144: d := bytesBufferDecoderPool.Get().(*Decoder)
pools.go#L148: d := streamingDecoderPool.Get().(*Decoder)
pools.go#L153: func putStreamingDecoder(d *Decoder) {
value.go#L327: func mustReorderObjectsFromDecoder(d *Decoder, scratch *[]byte) {
encoding/json
v2_decode.go#L237: func (n *Number) UnmarshalJSONFrom(dec *jsontext.Decoder) error {
v2_stream.go#L21: dec *jsontext.Decoder
encoding/json/v2
arshal.go#L424: func UnmarshalDecode(in *jsontext.Decoder, out any, opts ...Options) (err error) {
arshal.go#L446: func unmarshalDecode(in *jsontext.Decoder, out any, uo *jsonopts.Struct, last bool) (err error) {
arshal.go#L517: unmarshaler = func(*jsontext.Decoder, addressableValue, *jsonopts.Struct) error
arshal_any.go#L64: func unmarshalValueAny(dec *jsontext.Decoder, uo *jsonopts.Struct) (any, error) {
arshal_any.go#L177: func unmarshalObjectAny(dec *jsontext.Decoder, uo *jsonopts.Struct) (map[string]any, error) {
arshal_any.go#L266: func unmarshalArrayAny(dec *jsontext.Decoder, uo *jsonopts.Struct) ([]any, error) {
arshal_default.go#L160: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L257: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L378: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L492: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L591: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L698: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L958: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L1288: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L1399: unmarshal = func(dec *jsontext.Decoder, _ addressableValue, _ *jsonopts.Struct) error {
arshal_default.go#L1541: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L1653: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L1755: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L1860: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L1978: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_embedded.go#L169: func unmarshalEmbeddedFallbackNext(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct, f *structField, quotedName, unquotedName []byte) error {
arshal_funcs.go#L72: type typedUnmarshalers = typedArshalers[jsontext.Decoder]
arshal_funcs.go#L91: type typedUnmarshaler = typedArshaler[jsontext.Decoder]
arshal_funcs.go#L260: fnc: func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_funcs.go#L290: func UnmarshalFromFunc[T any](fn func(*jsontext.Decoder, T) error) *Unmarshalers {
arshal_funcs.go#L295: fnc: func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_methods.go#L165: UnmarshalJSONFrom(*jsontext.Decoder) error
arshal_methods.go#L301: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_methods.go#L336: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_methods.go#L362: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_time.go#L78: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_time.go#L161: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) (err error) {
errors.go#L118: case *jsontext.Decoder:
errors.go#L138: func newUnmarshalErrorBefore(d *jsontext.Decoder, t reflect.Type, err error) error {
errors.go#L152: func newUnmarshalErrorBeforeWithSkipping(d *jsontext.Decoder, t reflect.Type, err error) error {
errors.go#L164: func newUnmarshalErrorAfter(d *jsontext.Decoder, t reflect.Type, err error) error {
errors.go#L184: func newUnmarshalErrorAfterWithValue(d *jsontext.Decoder, t reflect.Type, err error) error {
errors.go#L195: func newUnmarshalErrorAfterWithSkipping(d *jsontext.Decoder, t reflect.Type, err error) error {
errors.go#L236: case *jsontext.Decoder: