MvcNewtonsoftJsonOptionsExtensions.UseCamelCasing Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for