Documentation
¶
Overview ¶
Package json provides JSON encoding helpers and adapters used by go-service.
This package integrates JSON encoding/decoding behind the go-service encoding abstraction.
Start with the package-level constructors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder struct{}
Encoder implements JSON encoding and decoding.
It uses the standard library `encoding/json` encoder/decoder with default settings.
func NewEncoder ¶
func NewEncoder() *Encoder
NewEncoder constructs a JSON encoder.
This encoder is a thin adapter around the standard library `encoding/json` package that satisfies `github.com/alexfalkowski/go-service/v2/encoding.Encoder`.
Click to show internal directories.
Click to hide internal directories.