JSONDeserializer | R Documentation |
Deserialize JSON data from an inference endpoint into a R object.
sagemaker.mlcore::BaseDeserializer
-> sagemaker.mlcore::SimpleBaseDeserializer
-> JSONDeserializer
new()
Initialize a “JSONDeserializer“ instance.
JSONDeserializer$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: "application/json").
deserialize()
Deserialize JSON data from an inference endpoint into a Python object.
JSONDeserializer$deserialize(stream, content_type)
stream
(botocore.response.StreamingBody): Data to be deserialized.
content_type
(str): The MIME type of the data.
object: The JSON-formatted data deserialized into a R object.
clone()
The objects of this class are cloneable with this method.
JSONDeserializer$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other serializer:
BaseDeserializer
,
BaseSerializer
,
BytesDeserializer
,
CSVDeserializer
,
CSVSerializer
,
DataTableDeserializer
,
IdentitySerializer
,
JSONLinesDeserializer
,
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.