Share via


JsonSerialization Class

Definition

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

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.JsonSerializationTypeConverter))]
public class JsonSerialization : Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IJsonSerialization, Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.JsonSerializationTypeConverter))>]
type JsonSerialization = class
    interface IJsonSerialization
    interface IJsonSerializable
    interface ISerialization
    interface IValidates
Public Class JsonSerialization
Implements IJsonSerialization, IValidates
Inheritance
JsonSerialization
Attributes
Implements

Constructors

JsonSerialization()

Creates an new JsonSerialization 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.

Type

Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of JsonSerialization.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of JsonSerialization.

FromJson(JsonNode)

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

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of JsonSerialization into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to