json

package
v1.15.7 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WithPrivateField = jsoniter.Config{
	IndentionStep:                 4,
	MarshalFloatWith6Digits:       true,
	EscapeHTML:                    true,
	SortMapKeys:                   true,
	UseNumber:                     true,
	ObjectFieldMustBeSimpleString: true,
}.Froze()

Functions

func Marshal

func Marshal(v interface{}) ([]byte, error)

func MarshalString added in v1.15.7

func MarshalString(v any) (string, error)

func NewDecoder

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

func NewEncoder

func NewEncoder(w io.Writer) *jsoniter.Encoder

func SupportPrivateFields added in v1.15.7

func SupportPrivateFields()

func Unmarshal

func Unmarshal(data []byte, v any) error

func UnmarshalString added in v1.15.7

func UnmarshalString(data string, v any) error

Types

type Number

type Number = json.Number

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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