json

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BeginObject = jsontext.BeginObject
	EndObject   = jsontext.EndObject
	Null        = jsontext.Null
	BeginArray  = jsontext.BeginArray
	EndArray    = jsontext.EndArray
)

Functions

func AllowDuplicateNames

func AllowDuplicateNames(allow bool) json.Options

func Deterministic added in v0.11.0

func Deterministic(v bool) json.Options

func Marshal

func Marshal(in any, opts ...json.Options) (out []byte, err error)

func MarshalEncode

func MarshalEncode(out *jsontext.Encoder, in any, opts ...json.Options) (err error)

func MarshalIndent

func MarshalIndent(in any, prefix, indent string) (out []byte, err error)

func MarshalIndentWrite

func MarshalIndentWrite(out io.Writer, in any, prefix, indent string) (err error)

func MarshalWrite

func MarshalWrite(out io.Writer, in any, opts ...json.Options) (err error)

func NewDecoder added in v0.11.0

func NewDecoder(r io.Reader) *jsontext.Decoder

func Unmarshal

func Unmarshal(in []byte, out any, opts ...json.Options) (err error)

func UnmarshalDecode

func UnmarshalDecode(in *jsontext.Decoder, out any, opts ...json.Options) (err error)

func UnmarshalRead

func UnmarshalRead(in io.Reader, out any, opts ...json.Options) (err error)

func WithIndent

func WithIndent(indent string) json.Options

Types

type Decoder

type Decoder = jsontext.Decoder

type Encoder

type Encoder = jsontext.Encoder

type Kind added in v0.11.0

type Kind = jsontext.Kind

type MarshalerTo

type MarshalerTo = json.MarshalerTo

type UnmarshalerFrom

type UnmarshalerFrom = json.UnmarshalerFrom

type Value

type Value = jsontext.Value

Jump to

Keyboard shortcuts

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