✅ How to specify camel case for all response properties with Newtonsoft
This is the type of JSON I receive from an external API:
This I deserialize into this DTO:
Then I do some stuff, and return the same model from my own API.
They appear in my response with the same snake case I received them with. I have even tried adding an action filter to add a
How can I force the dynamic properties to be camel case?
This I deserialize into this DTO:
Then I do some stuff, and return the same model from my own API.
AccountDetails contains object, because for each key, the external API returns a different set of properties, as we see in the json account_details.google, and account_details.whatsapp etc.They appear in my response with the same snake case I received them with. I have even tried adding an action filter to add a
NewtonsoftJsonOutputFormatter set to camel case.How can I force the dynamic properties to be camel case?