json

package
v0.6.0-alpha.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2024 License: GPL-2.0 Imports: 9 Imported by: 49

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Marshal    = json.Marshal
	Unmarshal  = json.Unmarshal
	NewEncoder = json.NewEncoder
	NewDecoder = json.NewDecoder
)
View Source
var (
	MarshalContext                        = json.MarshalContext
	UnmarshalContext                      = json.UnmarshalContext
	NewEncoderContext                     = json.NewEncoderContext
	NewDecoderContext                     = json.NewDecoderContext
	UnmarshalContextDisallowUnknownFields = json.UnmarshalContextDisallowUnknownFields
)
View Source
var UnmarshalDisallowUnknownFields = json.UnmarshalDisallowUnknownFields

Functions

func NewCommentFilter

func NewCommentFilter(reader io.Reader) io.Reader

func UnmarshalExtended

func UnmarshalExtended[T any](content []byte) (T, error)

func UnmarshalExtendedContext

func UnmarshalExtendedContext[T any](ctx context.Context, content []byte) (T, error)

Types

type CommentFilter

type CommentFilter struct {
	// contains filtered or unexported fields
}

func (*CommentFilter) Read

func (v *CommentFilter) Read(b []byte) (int, error)

type ContextMarshaler

type ContextMarshaler interface {
	MarshalJSONContext(ctx context.Context) ([]byte, error)
}

type ContextUnmarshaler

type ContextUnmarshaler interface {
	UnmarshalJSONContext(ctx context.Context, content []byte) error
}

type Decoder

type Decoder = json.Decoder

type Delim

type Delim = json.Delim

type Encoder

type Encoder = json.Encoder

type RawMessage

type RawMessage = json.RawMessage

type SyntaxError

type SyntaxError = json.SyntaxError

type Token

type Token = json.Token

Directories

Path Synopsis
internal
contextjson
Package json implements encoding and decoding of JSON as defined in RFC 7159.
Package json implements encoding and decoding of JSON as defined in RFC 7159.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL