TcHmiJsonSerializer.Serialize.T. Method (JsonConverter`1.T., T, Boolean)

Serializes the specified value to an equivalent JSON String using the specified JsonConverter{T}.

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

Syntax

C#

public static string Serialize<T>(
    JsonConverter<T> converter,
    T value,
    bool format
)

Parameters

converter

Type: JsonConverter.T.
The JsonConverter{T} that is used to serialize value to an equivalent JSON String

value

Type: T
The value to convert.

format

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

Type Parameters

T

The type of the value to convert.

Return Value

Type: String
A JSON String that is equivalent to value.

Reference

TcHmiJsonSerializer Class

Serialize Overload

TcHmiSrv.Core.Tools.Json.Newtonsoft Namespace