| JSONLinesDeserializer | R Documentation |
Deserialize JSON lines data from an inference endpoint.
sagemaker.mlcore::BaseDeserializer -> sagemaker.mlcore::SimpleBaseDeserializer -> JSONDeserializer
new()Initialize a āJSONLinesDeserializerā instance.
JSONLinesDeserializer$new(accept = "application/json")
accept(union[str, tuple[str]]): The MIME type (or tuple of allowable MIME types) that is expected from the inference endpoint (default: ("text/csv","application/json")).
deserialize()Deserialize JSON lines data from an inference endpoint. See https://docs.python.org/3/library/json.html#py-to-json-table to understand how JSON values are converted to R objects.
JSONLinesDeserializer$deserialize(stream, content_type)
stream(botocore.response.StreamingBody): Data to be deserialized.
content_type(str): The MIME type of the data.
list: A list of JSON serializable objects.
clone()The objects of this class are cloneable with this method.
JSONLinesDeserializer$clone(deep = FALSE)
deepWhether to make a deep clone.
Other serializer:
BaseDeserializer,
BaseSerializer,
BytesDeserializer,
CSVDeserializer,
CSVSerializer,
DataTableDeserializer,
IdentitySerializer,
JSONDeserializer,
JSONLinesSerializer,
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.