method
Value.AppendJSON
AppendJSON appends the encoding MarshalJSON returns to dst, so a caller can encode many values into one buffer. It returns nil and the encoding/json error when value contains a non-finite number or an unencodable time.
Arguments
| Argument | Type | Description |
|---|---|---|
dst | []byte | The dst value. |
Returns
The declared result.
([]byte, error)Full signature
func (value Value) AppendJSON(dst []byte) ([]byte, error)Related types
ValueAn immutable scalar, object, list, or populated document value.