json

package
v0.0.0-...-239b6c0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigDefault = json.Config{

	DisallowUnknownFields:         true,
	CaseSensitive:                 true,
	ObjectFieldMustBeSimpleString: true,
	ValidateJsonRawMessage:        true,
}.Froze()

Functions

func Marshal

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

func NewDecoder

func NewDecoder(in io.Reader) *json.Decoder

func NewDecoderBytes

func NewDecoderBytes(body []byte) *json.Decoder

func NewEncoder

func NewEncoder(out io.Writer) *json.Encoder

func Unmarshal

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

func Write

func Write(data interface{}, indent string, out io.Writer) error

Types

type Config

type Config = json.Config

type Decoder

type Decoder = json.Decoder

type Encoder

type Encoder = json.Encoder

type Number

type Number = json.Number

Jump to

Keyboard shortcuts

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