json

package
v0.0.0-...-c78e9a6 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: LGPL-2.1 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func IsValidBytes

func IsValidBytes(data []byte) bool

IsValidBytes validates JSON data.

func IsValidStr

func IsValidStr(str string) bool

IsValidStr validates JSON string.

func Marshal

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

Marshal returns the JSON encoding of v.

func MarshalToString

func MarshalToString(v interface{}) (string, error)

MarshalToString returns the JSON encoding to string of v.

func ParseBytes

func ParseBytes(data []byte) gjson.Result

ParseBytes parses the JSON bytes and returns a gjson.Result which allows chaining further operations.

func ParseStr

func ParseStr(data string) gjson.Result

ParseStr parses the JSON string and returns a gjson.Result which allows chaining further operations.

func Unmarshal

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

Unmarshal parses the JSON-encoded data and stores the result in the value pointed to by v.

func UnmarshalFromJson

func UnmarshalFromJson(b interface{}, v interface{}) error

UnmarshalFromJson unmarshal imini to v.

func UnmarshalStr

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

UnmarshalStr unmarshal string to v.

func UseNumber

func UseNumber()

UseNumber solve very big int64 digits loss.

Types

This section is empty.

Jump to

Keyboard shortcuts

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