Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
We ended up setting the global setting to camel case during startup, and overriding it in the Json call.
services.Configure<JsonOptions>(o =>
{
o.JsonSerializerOptions.PropertyNamingPolicy = JsonNamingPolicy.CamelCase;
});
I don't think this is the best fix though. The forms DataSubmitControl Json call should specify camel case since the Javascript included with the nuget package expects it.
Forms 5.1.0 javascript expects camel case capitalization on the return properties, but the return type SubmitActionResult and the Json call do not specifically specify camel case in the json serialization. Has anyone gotten ajax submissions to work without setting the global json version settings to camel case?