TcHmiJsonSerializer.Serialize Method (JsonWriter, Object, Boolean, Boolean)

Serializes the specified Object to an equivalent JSON String using the specified JsonWriter, Type and JsonSerializerSettings.

Namespace:  TcHmiSrv.Core.Tools.Json.Newtonsoft
Assembly:  TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 1.3.0.0

Syntax

C#

public static void Serialize(
    JsonWriter writer,
    Object value,
    bool format,
    bool enableAdvancedConversions
)

Parameters

writer

Type: JsonWriter
The JsonWriter that is used to write the JSON String.

value

Type: System.Object
The Object to convert.

format

Type: System.Boolean
true to format the JSON String by indenting; otherwise, false.

enableAdvancedConversions

Type: System.Boolean
true to enabled advanced conversions; otherwise, false.

Reference

TcHmiJsonSerializer Class

Serialize Overload

TcHmiSrv.Core.Tools.Json.Newtonsoft Namespace