Take the community feedback survey now.
                AI OnAI Off
            
        Take the community feedback survey now.
 
                Try setting this way, I think content delivery uses its own settings.
 services.ConfigureContentDeliveryApiSerializer(settings =>
            {
                settings.NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore;
            });Interesting. Did not know about that configuration option - the content delivery api response is however is correct.
This is a custom api controller. - The answer after a long search was this.
Use the DefaultContractResolver, with a CamelCaseNamingStrategy and all ctor parameters to 'true'.

 
    
    
    
We have a weird issue with formatting of ContentApiModel to JSON.
Resulting JSON, some properties are propper CamelCase - some are not.

Any ideas?