json

package
v1.42.8 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 9 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Unmarshal = json.Unmarshal

Functions

func Decode

func Decode(body io.ReadCloser, dst interface{}) error

func DecodeBuffer

func DecodeBuffer(buf *bytes.Buffer, dst interface{}) error

func DecodeBytes

func DecodeBytes(data []byte, dst interface{}) error

func Encode

func Encode(value interface{}) string

func EncodeBuffer

func EncodeBuffer(value interface{}) *bytes.Buffer

func EncodeBytes

func EncodeBytes(value interface{}) []byte

func EncodeIndentBytes

func EncodeIndentBytes(value interface{}, prefix, indent string) []byte

func EncodeRaw

func EncodeRaw(value interface{}) json.RawMessage

func Iterator

func Iterator(filename string) <-chan Record

Types

type Record

type Record struct {
	Data  string
	Index int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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