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 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 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.