json

package
v1.20.6 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 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

Overview

Package json is a drop-in replacement for encoding/json that delegates to github.com/goccy/go-json for better marshal/unmarshal performance. All public symbols required by the rest of the codebase are re-exported here so that callers only need to change their import path.

Index

Constants

This section is empty.

Variables

View Source
var (
	Marshal       = gojson.Marshal
	MarshalIndent = gojson.MarshalIndent
	Unmarshal     = gojson.Unmarshal
	NewDecoder    = gojson.NewDecoder
	NewEncoder    = gojson.NewEncoder
	Valid         = gojson.Valid
)

Functions

This section is empty.

Types

type Decoder

type Decoder = gojson.Decoder

type Encoder

type Encoder = gojson.Encoder

type InvalidUnmarshalError

type InvalidUnmarshalError = gojson.InvalidUnmarshalError

type Marshaler

type Marshaler = gojson.Marshaler

type MarshalerError

type MarshalerError = gojson.MarshalerError

type Number

type Number = gojson.Number

type RawMessage

type RawMessage = gojson.RawMessage

type SyntaxError

type SyntaxError = gojson.SyntaxError

type UnmarshalTypeError

type UnmarshalTypeError = gojson.UnmarshalTypeError

type Unmarshaler

type Unmarshaler = gojson.Unmarshaler

Jump to

Keyboard shortcuts

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