JsonSerialization Class
Describes how data from an input is serialized or how data is serialized when written to an output in JSON format.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
azure.mgmt.streamanalytics.models._models_py3.SerializationJsonSerialization
Constructor
JsonSerialization(*, encoding: Optional[Union[str, azure.mgmt.streamanalytics.models._stream_analytics_management_client_enums.Encoding]] = None, format: Optional[Union[str, azure.mgmt.streamanalytics.models._stream_analytics_management_client_enums.JsonOutputSerializationFormat]] = None, **kwargs)
Parameters
- type
- str or <xref:stream_analytics_management_client.models.EventSerializationType>
Required. Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests.Constant filled by server. Possible values include: "Csv", "Avro", "Json", "CustomClr", "Parquet".
- encoding
- str or <xref:stream_analytics_management_client.models.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. Possible values include: "UTF8".
- format
- str or <xref:stream_analytics_management_client.models.JsonOutputSerializationFormat>
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. Possible values include: "LineSeparated", "Array".
Feedback
Submit and view feedback for