Compartir a través de


IJsonHelper.Serialize Método

Definición

Sobrecargas

Serialize(Object)

Devuelve JSON serializado para value.

Serialize(Object, JsonSerializerSettings)

Devuelve JSON serializado para value.

Serialize(Object)

Source:
IJsonHelper.cs

Devuelve JSON serializado para value.

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

Parámetros

value
Object

Valor que se va a serializar como JSON.

Devoluciones

Nuevo IHtmlContent que contiene el JSON serializado.

Se aplica a

Serialize(Object, JsonSerializerSettings)

Devuelve JSON serializado para value.

public:
 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
Public Function Serialize (value As Object, serializerSettings As JsonSerializerSettings) As IHtmlContent

Parámetros

value
Object

Valor que se va a serializar como JSON.

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

que Newtonsoft.Json.JsonSerializerSettings va a usar el serializador.

Devoluciones

Nuevo IHtmlContent que contiene el JSON serializado.

Se aplica a