json

package
v4.0.0-...-f70527d Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(data []byte, path ...interface{}) jsoniter.Any

func Marshal

func Marshal(v any) ([]byte, error)

func MarshalIndent

func MarshalIndent(v any, prefix, indent string) ([]byte, error)

func MarshalString

func MarshalString(v any) string

func MarshalStringPretty

func MarshalStringPretty(v any) string

func MarshallPretty

func MarshallPretty(v any) ([]byte, error)

func NewDecoder

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

func NewEncoder

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

func Unmarshal

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

func UnmarshalFile

func UnmarshalFile(path string, v interface{}) error

func UnmarshalString

func UnmarshalString(str string, v interface{}) error

func Valid

func Valid(data []byte) bool

Types

type Number

type Number = json.Number

type RawMessage

type RawMessage = json.RawMessage

Jump to

Keyboard shortcuts

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