Dela via


MvcNewtonsoftJsonOptionsExtensions.UseCamelCasing Method

Definition

Configures the casing behavior of JSON serialization to use camel case for property names, and optionally for dynamic types and dictionary keys.

public static Microsoft.AspNetCore.Mvc.MvcNewtonsoftJsonOptions UseCamelCasing (this Microsoft.AspNetCore.Mvc.MvcNewtonsoftJsonOptions options, bool processDictionaryKeys);
static member UseCamelCasing : Microsoft.AspNetCore.Mvc.MvcNewtonsoftJsonOptions * bool -> Microsoft.AspNetCore.Mvc.MvcNewtonsoftJsonOptions
<Extension()>
Public Function UseCamelCasing (options As MvcNewtonsoftJsonOptions, processDictionaryKeys As Boolean) As MvcNewtonsoftJsonOptions

Parameters

processDictionaryKeys
Boolean

If true will camel case dictionary keys and properties of dynamic objects.

Returns

MvcNewtonsoftJsonOptions with camel case settings.

Remarks

This method modifies Newtonsoft.Json.JsonSerializerSettings.ContractResolver.

Applies to