Serializing a PascalCase Newtonsoft.Json JObject to camelCase

added by DotNetKicks
6/4/2019 10:29:20 AM

174 Views

In this post I describe one of the quirks of serializing JSON.NET JObject (contract resolvers are not honoured), and show how to get camelCase names when serializing a JObject that stored its property names in PascalCase. I was working with some code the other day that stored objects in PostgreSQL using the built-in JSON support.


0 comments