Documentation ¶
Overview ¶
Package json implements the Encoder and Decoders for use with the json format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultJSONEncoder provides a package-level json encoder for use. DefaultJSONEncoder JSONEncoder // DefaultJSONTargetDecoder provides a package-level json target decoder for use. DefaultJSONTargetDecoder JSONUnmarshalDecoder )
Functions ¶
This section is empty.
Types ¶
type JSONEncoder ¶
type JSONEncoder struct{}
JSONEncoder implements a wrapper over the encoding/json JSONEncoder to match the Encoder interface. This allow us use JSON has a encoder for any method encoding as needed.
type JSONUnmarshalDecoder ¶
type JSONUnmarshalDecoder struct{}
JSONUnmarshalDecoder implements a wrapper over the encoding/json JSONEncoder to all incoming data into a interface{} type.
Click to show internal directories.
Click to hide internal directories.