Compartir a través de


JsonHelper.Serialize Método

Definición

Sobrecargas

Serialize(Object)

Devuelve JSON serializado para value.

Serialize(Object, JsonSerializerSettings)

Devuelve JSON serializado para value.

Serialize(Object)

Source:
JsonHelper.cs
Source:
JsonHelper.cs

Devuelve JSON serializado para 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

Parámetros

value
Object

Valor que se va a serializar como JSON.

Devoluciones

Nuevo IHtmlContent que contiene el JSON serializado.

Implementaciones

Se aplica a

Serialize(Object, JsonSerializerSettings)

Source:
JsonHelper.cs
Source:
JsonHelper.cs

Devuelve JSON serializado para 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

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.

Implementaciones

Se aplica a