JSONDeserializer: JSONDeserializer Class

JSONDeserializerR Documentation

JSONDeserializer Class

Description

Deserialize JSON data from an inference endpoint into a R object.

Super classes

sagemaker.mlcore::BaseDeserializer -> sagemaker.mlcore::SimpleBaseDeserializer -> JSONDeserializer

Methods

Public methods

Inherited methods

Method new()

Initialize a “JSONDeserializer“ instance.

Usage
JSONDeserializer$new(accept = "application/json")
Arguments
accept

(union[str, tuple[str]]): The MIME type (or tuple of allowable MIME types) that is expected from the inference endpoint (default: "application/json").


Method deserialize()

Deserialize JSON data from an inference endpoint into a Python object.

Usage
JSONDeserializer$deserialize(stream, content_type)
Arguments
stream

(botocore.response.StreamingBody): Data to be deserialized.

content_type

(str): The MIME type of the data.

Returns

object: The JSON-formatted data deserialized into a R object.


Method clone()

The objects of this class are cloneable with this method.

Usage
JSONDeserializer$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

Other serializer: BaseDeserializer, BaseSerializer, BytesDeserializer, CSVDeserializer, CSVSerializer, DataTableDeserializer, IdentitySerializer, JSONLinesDeserializer, JSONLinesSerializer, JSONSerializer, LibSVMSerializer, NumpyDeserializer, NumpySerializer, SimpleBaseDeserializer, SimpleBaseSerializer, SparseMatrixSerializer, StringDeserializer, TibbleDeserializer


DyfanJones/sagemaker-r-mlcore documentation built on May 3, 2022, 10:08 a.m.