Documentation
¶
Overview ¶
Package json_util provides JSON utilities including a custom RawMessage type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RawMessage ¶
type RawMessage []byte
RawMessage is a custom JSON raw message type that marshals empty slices as "null".
func (RawMessage) MarshalJSON ¶
func (m RawMessage) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON marshaling behavior for RawMessage. Empty RawMessage values are marshaled as "null" instead of "[]".
func (*RawMessage) UnmarshalJSON ¶
func (m *RawMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON sets *m to a copy of the JSON data.
Click to show internal directories.
Click to hide internal directories.