Dela via


JsonHelper.Serialize Method

Definition

Overloads

Serialize(Object)

Returns serialized JSON for the value.

Serialize(Object, JsonSerializerSettings)

Returns serialized JSON for the value.

Serialize(Object)

Source:
JsonHelper.cs
Source:
JsonHelper.cs

Returns serialized JSON for the value.

public:
 virtual Microsoft::AspNetCore::Html::IHtmlContent ^ Serialize(System::Object ^ value);
public Microsoft.AspNetCore.Html.IHtmlContent Serialize (object value);
abstract member Serialize : obj -> Microsoft.AspNetCore.Html.IHtmlContent
override this.Serialize : obj -> Microsoft.AspNetCore.Html.IHtmlContent
Public Function Serialize (value As Object) As IHtmlContent

Parameters

value
Object

The value to serialize as JSON.

Returns

A new IHtmlContent containing the serialized JSON.

Implements

Applies to

Serialize(Object, JsonSerializerSettings)

Source:
JsonHelper.cs
Source:
JsonHelper.cs

Returns serialized JSON for the value.

public:
 virtual Microsoft::AspNetCore::Html::IHtmlContent ^ Serialize(System::Object ^ value, Newtonsoft::Json::JsonSerializerSettings ^ serializerSettings);
public Microsoft.AspNetCore.Html.IHtmlContent Serialize (object value, Newtonsoft.Json.JsonSerializerSettings serializerSettings);
abstract member Serialize : obj * Newtonsoft.Json.JsonSerializerSettings -> Microsoft.AspNetCore.Html.IHtmlContent
override this.Serialize : obj * Newtonsoft.Json.JsonSerializerSettings -> Microsoft.AspNetCore.Html.IHtmlContent
Public Function Serialize (value As Object, serializerSettings As JsonSerializerSettings) As IHtmlContent

Parameters

value
Object

The value to serialize as JSON.

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

The Newtonsoft.Json.JsonSerializerSettings to be used by the serializer.

Returns

A new IHtmlContent containing the serialized JSON.

Implements

Applies to