Serialize the x
argument to the given instance of byte array in UTF-8 encoding of JSON format
that specified by provided configuration options or defaults that minimizes output size & time to serialize.
Serialize the x
argument to the given instance of byte array in UTF-8 encoding of JSON format
that specified by provided configuration options or defaults that minimizes output size & time to serialize.
type of value to serialize
a codec for the given value
the value to serialize
a byte array where the value should be serialized
a position in the byte array from which serialization of the value should start
a serialization configuration
number of next position after last byte serialized to buf
ArrayIndexOutOfBoundsException
if the from
is greater than buf
length or negative,
or buf
length was exceeded during serialization
NullPointerException
if the codec
, buf
or config
is null
Serialize the x
argument to a new allocated instance of byte array in UTF-8 encoding of JSON format,
that specified by provided configuration options.
Serialize the x
argument to a new allocated instance of byte array in UTF-8 encoding of JSON format,
that specified by provided configuration options.
type of value to serialize
a codec for the given value
the value to serialize
a serialization configuration
a byte array with x
serialized to JSON
NullPointerException
if the codec
or config
is null
Serialize the x
argument to a new allocated instance of byte array in UTF-8 encoding of JSON format
with default configuration options that minimizes output size & time to serialize.
Serialize the x
argument to a new allocated instance of byte array in UTF-8 encoding of JSON format
with default configuration options that minimizes output size & time to serialize.
type of value to serialize
a codec for the given value
the value to serialize
a byte array with x
serialized to JSON
NullPointerException
if the codec
is null
Serialize the x
argument to the provided output stream in UTF-8 encoding of JSON format
that specified by provided configuration options.
Serialize the x
argument to the provided output stream in UTF-8 encoding of JSON format
that specified by provided configuration options.
type of value to serialize
a codec for the given value
the value to serialize
an output stream to serialize into
a serialization configuration
NullPointerException
if the codec
, out
or config
is null
Serialize the x
argument to the provided output stream in UTF-8 encoding of JSON format
with default configuration options that minimizes output size & time to serialize.
Serialize the x
argument to the provided output stream in UTF-8 encoding of JSON format
with default configuration options that minimizes output size & time to serialize.
type of value to serialize
a codec for the given value
the value to serialize
an output stream to serialize into
NullPointerException
if the codec
or config
is null