I annotated the properties of my model classes as shown below.
[DataMember(Name = "EN")] public string EmployeeName{ get; set; }
In general, this leads to compact JSON (I am serializing using the JSON.NET serializer).
However, when the JSON containing these smaller names is passed using the POST or PUT request for the controllers, the binding of the ASP.NET MVC model does not allow the JSON property βENβ to be correctly mapped to EmployeeName . It expects EmployeeName in JSON.
Any thoughts on how to fix this?
govin source share