json

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package json wraps encoding/json as a codec.Codec implementation registered under Format("json"). Blank-importing this package is enough to make JSON resolvable via the core/data/codec registry.

Package json — adapts *encoding/json.Decoder to codec.Decoder.

Package json — adapts *encoding/json.Encoder to codec.Encoder.

Index

Constants

This section is empty.

Variables

View Source
var Codec codec.Codec = codec.Register(&jsonCodec{})

Codec is the JSON singleton, registered with core/data/codec at package load. Binding the registration result to a named var is more idiomatic than `var _ = codec.Register(...)` and keeps us clear of init().

Functions

func New

func New() codec.Codec

New returns the JSON codec singleton.

Types

This section is empty.

Jump to

Keyboard shortcuts

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