json

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataTypeCheck

func DataTypeCheck(json []byte, expected string) error

func DataTypeCheckPath

func DataTypeCheckPath(json []byte, path string, expected string) error

func Marshal

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

Marshal returns the JSON encoding of v and any error encountered.

func New

func New(json []byte) (any, error)

New returns a new Structure and any error encountered.

func Unescape

func Unescape(json string) []byte

Unescape returns an unescaped json byte slice from a previous string.

func ValidJSON

func ValidJSON(in []byte) bool

ValidJSON returns true if the supplied json is valid. Otherwise it returns false.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳