JsonHelper Class

Definition

Default implementation of IJsonHelper.

C#
public class JsonHelper : Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper
Inheritance
JsonHelper
Implements

Constructors

JsonHelper(JsonOutputFormatter, ArrayPool<Char>)

Initializes a new instance of JsonHelper that is backed by jsonOutputFormatter.

Methods

Serialize(Object, JsonSerializerSettings)

Returns serialized JSON for the value.

Serialize(Object)

Returns serialized JSON for the value.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2