ASP.NET Core MVC JSON Output in camelCase or PascalCase
You may have noticed if you have migrated from ASP.NET Web API to ASP.NET Core, that the default case for serializing output to JSON is now camelCase. If you want to see the history, you can check out this issue on the ASP.NET Core MVC GitHub. https://www.youtube.com/watch?v=FGce4oX_8q0Video can’t be loaded because JavaScript is disabled: ASP.NET Core MVC JSON Output in camelCase or PascalCase (https://www.youtube.com/watch?v=FGce4oX_8q0) Pascal Default As mentioned, the default is now camelCase. If you need/want all of the JSON output to be in PascalCase, then the solution is pretty simple. All you need to do is specify the DefaultContractResolver.… Read More »ASP.NET Core MVC JSON Output in camelCase or PascalCase