snake_case JSON with ASP.NET Core MVC

ASP.NET Core MVC uses camel-cased JSON by default. The property with a name “FirstName” gets serialized into “firstName”. Same, on the way in. There is another style: Snake case. Twitter, for example, uses snake-cased JSON. See this. It is possible to get ASP.NET Core MVC deal with snake-cased JSON. You will just need to change the ConfigureServices method of Startup as follows.
Continue reading