Virtual Happy Hour canceled for Friday May 31st.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour canceled for Friday May 31st.
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?