Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultDecoder ¶
NewDefaultDecoder constructs a default JSON decoder for Data Transfer.
Types ¶
type JSONNull ¶
type JSONNull struct{}
JSONNull denotes a JSON 'null' value. It represents pure 'null' JSON value, not a value inside a JSON object or array. A value inside a JSON object is just golang's 'nil'
func (JSONNull) MarshalJSON ¶
func (JSONNull) MarshalYSON ¶
type ValueDecoder ¶
type ValueDecoder struct {
// contains filtered or unexported fields
}
ValueDecoder is a decoder which deserializes JSONs into the Data Transfer's JSON representation
func NewValueDecoder ¶
func NewValueDecoder(base *json.Decoder) *ValueDecoder
NewValueDecoder constructs a decoder which deserializes JSONs into the Data Transfer's JSON representation
func (*ValueDecoder) Decode ¶
func (d *ValueDecoder) Decode() (any, error)
Decode uses the decoder from the constructor to deserialize the input into a Data Transfer JSON
Click to show internal directories.
Click to hide internal directories.