Documentation ¶
Index ¶
- func DecodeGeneric(data []byte) (interface{}, error)
- func Marshal(v interface{}) ([]byte, error)
- func MarshalMerged(v1 interface{}, v2 interface{}) ([]byte, error)
- func MarshalPretty(v interface{}) ([]byte, error)
- func Unmarshal(data json.RawMessage, v interface{}) error
- func UnmarshalArray(data json.RawMessage) ([]json.RawMessage, error)
- func UnmarshalWithLimit(reader io.ReadCloser, s interface{}, limit int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeGeneric ¶
DecodeGeneric decodes the given JSON as a generic map or slice
func MarshalMerged ¶
MarshalMerged marshals the properties of two objects as one object
func MarshalPretty ¶
MarshalPretty marshals the given object to pretty JSON
func Unmarshal ¶
func Unmarshal(data json.RawMessage, v interface{}) error
Unmarshal is just a shortcut for json.Unmarshal so all calls can be made via the jsonx package
func UnmarshalArray ¶
func UnmarshalArray(data json.RawMessage) ([]json.RawMessage, error)
UnmarshalArray unmarshals an array of objects from the given JSON
func UnmarshalWithLimit ¶
func UnmarshalWithLimit(reader io.ReadCloser, s interface{}, limit int64) error
UnmarshalWithLimit unmarsmals a struct with a limit on how many bytes can be read from the given reader
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.