Encode a value as a JSON-serialized data payload for a statement.
Serializes the value as JSON and encodes to UTF-8 bytes. Throws StatementDataTooLargeError if the result exceeds MAX_STATEMENT_SIZE bytes.
The type of value being encoded.
The value to serialize.
UTF-8 encoded JSON bytes.
If the encoded data exceeds 512 bytes.
Encode a value as a JSON-serialized data payload for a statement.
Serializes the value as JSON and encodes to UTF-8 bytes. Throws StatementDataTooLargeError if the result exceeds MAX_STATEMENT_SIZE bytes.