diff --git a/src/Mvc/Mvc.Core/src/JsonOptions.cs b/src/Mvc/Mvc.Core/src/JsonOptions.cs
index cdc5168a07..dfce0ea4d5 100644
--- a/src/Mvc/Mvc.Core/src/JsonOptions.cs
+++ b/src/Mvc/Mvc.Core/src/JsonOptions.cs
@@ -12,20 +12,12 @@ namespace Microsoft.AspNetCore.Mvc
/// Gets the used by and
/// .
///
- public JsonSerializerOptions JsonSerializerOptions { get; } = new JsonSerializerOptions
+ public JsonSerializerOptions JsonSerializerOptions { get; } = new JsonSerializerOptions(JsonSerializerDefaults.Web)
{
// Limit the object graph we'll consume to a fixed depth. This prevents stackoverflow exceptions
// from deserialization errors that might occur from deeply nested objects.
// This value is the same for model binding and Json.Net's serialization.
MaxDepth = MvcOptions.DefaultMaxModelBindingRecursionDepth,
-
- // We're using case-insensitive because there's a TON of code that there that does uses JSON.NET's default
- // settings (preserve case) - including the WebAPIClient. This worked when we were using JSON.NET + camel casing
- // because JSON.NET is case-insensitive by default.
- PropertyNameCaseInsensitive = true,
-
- // Use camel casing for properties
- PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
};
}
}