Documentation ¶
Index ¶
- func AssignNextBytesToken(dst *[]byte, dec *Decoder) error
- func AssignNextStringToken(dst **string, dec *Decoder) error
- func DecoderSettings(inUseNumber bool)
- func Engine() string
- 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 ReadNextStringToken(dec *Decoder) (string, error)
- func Unmarshal(b []byte, v interface{}) error
- type Decoder
- type Delim
- type Encoder
- type Marshaler
- type Number
- type RawMessage
- type Registry
- type Unmarshaler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignNextBytesToken ¶ added in v1.1.0
func AssignNextStringToken ¶ added in v1.1.0
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 ReadNextStringToken ¶ added in v1.1.0
Types ¶
type RawMessage ¶
type RawMessage = json.RawMessage
type Registry ¶ added in v1.1.2
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶ added in v1.1.2
func NewRegistry() *Registry
type Unmarshaler ¶ added in v1.1.0
type Unmarshaler = json.Unmarshaler
Click to show internal directories.
Click to hide internal directories.