Documentation ¶
Index ¶
- func DecoderSettings(inUseNumber bool)
- func Marshal(v interface{}) ([]byte, error)
- func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error)
- func NewDecoder(r io.Reader) *json.Decoder
- func NewEncoder(w io.Writer) *json.Encoder
- func Unmarshal(b []byte, v interface{}) error
- type Number
- type RawMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecoderSettings ¶
func DecoderSettings(inUseNumber bool)
Sets the global configuration for json decoding
func MarshalIndent ¶
MarshalIndent is just a proxy for "encoding/json".MarshalIndent
func NewDecoder ¶
NewDecoder respects the values specified in DecoderSettings, and creates a Decoder that has certain features turned on/off
func NewEncoder ¶
NewEncoder is just a proxy for "encoding/json".NewEncoder
Types ¶
type RawMessage ¶
type RawMessage = json.RawMessage
Click to show internal directories.
Click to hide internal directories.