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

ArgumentTypeDescription
dst[]byteThe dst value.

Returns

The declared result.

([]byte, error)

Full signature

func (value Value) AppendJSON(dst []byte) ([]byte, error)

Source store/value_json.go:72

Related types

  • Value

    An immutable scalar, object, list, or populated document value.