Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Marshal = json.Marshal MarshalIndent = json.MarshalIndent Unmarshal = json.Unmarshal NewDecoder = json.NewDecoder NewEncoder = json.NewEncoder HTMLEscape = json.HTMLEscape )
Functions ¶
This section is empty.
Types ¶
type Marshaler ¶
Marshaler is the interface implemented by types that can marshal themselves into valid JSON.
type RawMessage ¶
type RawMessage = json.RawMessage
type Unmarshaler ¶
Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. The input can be assumed to be a valid encoding of a JSON value. UnmarshalJSON must copy the JSON data if it wishes to retain the data after returning.
By convention, to approximate the behavior of Unmarshal itself, Unmarshalers implement UnmarshalJSON([]byte("null")) as a no-op.
Click to show internal directories.
Click to hide internal directories.