Share via


Twin.ToJson(Formatting) Method

Definition

Gets the Twin as a JSON string

public string ToJson (Newtonsoft.Json.Formatting formatting = Newtonsoft.Json.Formatting.None);
member this.ToJson : Newtonsoft.Json.Formatting -> string
Public Function ToJson (Optional formatting As Formatting = Newtonsoft.Json.Formatting.None) As String

Parameters

formatting
Newtonsoft.Json.Formatting

Optional. Formatting for the output JSON string.

Returns

JSON string

Applies to