我对.Net Core的默认序列化CamelCasing行为有问题,希望看到其他人是否也遇到相同的问题,以及他们所使用的解决方法。
属性名称(例如FOO12或FOO1)被错误地序列化为
foO12或foO1
实际上,它们可能应该作为foo12或foo1完成。
我使用了添加以下属性的解决方法,但希望有人可能对此问题有更好的答案:
[JsonProperty(PropertyName =“ foo12”)]
c# json camelcasing asp.net-core-mvc .net-core
.net-core ×1
asp.net-core-mvc ×1
c# ×1
camelcasing ×1
json ×1