xjson

package
v1.29.8 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Marshal = json.Marshal

	Unmarshal = json.Unmarshal

	MarshalIndent = json.MarshalIndent

	NewDecoder = json.NewDecoder

	NewEncoder = json.NewEncoder

	Valid = json.Valid

	Get = json.Get

	MarshalString = json.MarshalToString

	UnmarshalFromString = json.UnmarshalFromString
)

Functions

func CamelCase added in v1.22.8

func CamelCase(name string) string

func IsArray added in v1.28.1

func IsArray(jsonData []byte) bool

func IsObject added in v1.28.1

func IsObject(jsonData []byte) bool

func MarshalStringWithDefault added in v1.28.6

func MarshalStringWithDefault(val any, def string) string

Types

type JsonIterator added in v1.28.2

type JsonIterator struct {
	*jsoniter.Iterator
	// contains filtered or unexported fields
}

func NewIterator added in v1.28.2

func NewIterator(jsonData []byte) *JsonIterator

func (*JsonIterator) IsArray added in v1.28.2

func (jti *JsonIterator) IsArray() bool

func (*JsonIterator) IsObject added in v1.28.2

func (jti *JsonIterator) IsObject() bool

Jump to

Keyboard shortcuts

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