JSONLinesSerializer | R Documentation |
Serialize data to a JSON Lines formatted string.
sagemaker.mlcore::BaseSerializer
-> sagemaker.mlcore::SimpleBaseSerializer
-> IdentitySerializer
new()
Initialize a “JSONLinesSerializer“ instance.
JSONLinesSerializer$new(content_type = "application/jsonlines")
content_type
(str): The MIME type to signal to the inference endpoint when sending request data (default: "application/jsonlines").
serialize()
Serialize data of various formats to a JSON Lines formatted string.
JSONLinesSerializer$serialize(data)
data
(object): Data to be serialized. The data can be a string, iterable of JSON serializable objects, or a file-like object.
str: The data serialized as a string containing newline-separated JSON values.
clone()
The objects of this class are cloneable with this method.
JSONLinesSerializer$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other serializer:
BaseDeserializer
,
BaseSerializer
,
BytesDeserializer
,
CSVDeserializer
,
CSVSerializer
,
DataTableDeserializer
,
IdentitySerializer
,
JSONDeserializer
,
JSONLinesDeserializer
,
JSONSerializer
,
LibSVMSerializer
,
NumpyDeserializer
,
NumpySerializer
,
SimpleBaseDeserializer
,
SimpleBaseSerializer
,
SparseMatrixSerializer
,
StringDeserializer
,
TibbleDeserializer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.