Delen via


JsonFormatSerialization Class

Definition

Describes how data from an input is serialized or how data is serialized when written to an output in JSON format.

public class JsonFormatSerialization : Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsDataSerialization, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.StreamAnalytics.Models.JsonFormatSerialization>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.StreamAnalytics.Models.JsonFormatSerialization>
public class JsonFormatSerialization : Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsDataSerialization
type JsonFormatSerialization = class
    inherit StreamAnalyticsDataSerialization
    interface IJsonModel<JsonFormatSerialization>
    interface IPersistableModel<JsonFormatSerialization>
type JsonFormatSerialization = class
    inherit StreamAnalyticsDataSerialization
Public Class JsonFormatSerialization
Inherits StreamAnalyticsDataSerialization
Implements IJsonModel(Of JsonFormatSerialization), IPersistableModel(Of JsonFormatSerialization)
Public Class JsonFormatSerialization
Inherits StreamAnalyticsDataSerialization
Inheritance
JsonFormatSerialization
Implements

Constructors

JsonFormatSerialization()

Initializes a new instance of JsonFormatSerialization.

Properties

Encoding

Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. Required on PUT (CreateOrReplace) requests.

Format

This property only applies to JSON serialization of outputs only. It is not applicable to inputs. This property specifies the format of the JSON the output will be written in. The currently supported values are 'lineSeparated' indicating the output will be formatted by having each JSON object separated by a new line and 'array' indicating the output will be formatted as an array of JSON objects. Default value is 'lineSeparated' if left null.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<JsonFormatSerialization>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<JsonFormatSerialization>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<StreamAnalyticsDataSerialization>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from StreamAnalyticsDataSerialization)
IJsonModel<StreamAnalyticsDataSerialization>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from StreamAnalyticsDataSerialization)
IPersistableModel<JsonFormatSerialization>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<JsonFormatSerialization>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<JsonFormatSerialization>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<StreamAnalyticsDataSerialization>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from StreamAnalyticsDataSerialization)
IPersistableModel<StreamAnalyticsDataSerialization>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from StreamAnalyticsDataSerialization)
IPersistableModel<StreamAnalyticsDataSerialization>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from StreamAnalyticsDataSerialization)

Applies to