Share via


JsonSerializationProperties Class

Definition

The properties that are associated with the JSON serialization type.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.JsonSerializationPropertiesTypeConverter))]
public class JsonSerializationProperties : Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IJsonSerializationProperties
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.JsonSerializationPropertiesTypeConverter))>]
type JsonSerializationProperties = class
    interface IJsonSerializationProperties
    interface IJsonSerializable
Public Class JsonSerializationProperties
Implements IJsonSerializationProperties
Inheritance
JsonSerializationProperties
Attributes
Implements

Constructors

JsonSerializationProperties()

Creates an new JsonSerializationProperties instance.

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

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of JsonSerializationProperties.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of JsonSerializationProperties.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IJsonSerializationProperties.

FromJsonString(String)

Creates a new instance of JsonSerializationProperties, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of JsonSerializationProperties into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to