Use custom JsonSerializerSettings with DocumentDb in Azure Function

Viewed 3261

I would like to create a document using the DocumentDb API using custom JsonSerializerSettings. Can anyone tell me how I can do this?

I have tried setting

JsonConvert.DefaultSettings = () => {
    return new JsonSerializerSettings() {
        ContractResolver = new CamelCasePropertyNameContractResolver()
        };
    };
1 Answers
Related