I have just defined an issue on Github for this:
<a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/519">https://github.com/aspnetboilerplate/as ... issues/519</a>
In fact I am using AbpController and returnning JSON: So this line is the problem. A shared place to control it pr. request would be very nice.
<a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/master/src/Abp.Web.Mvc/Web/Mvc/Controllers/Results/AbpJsonResult.cs#L60">https://github.com/aspnetboilerplate/as ... ult.cs#L60</a>
Hi
The problem is the client side component I use (Telerik) automatic binds to the data in the JSON, and it expects the naming to be as in the model on the server side, which is Pascal. So when the data arrives at the client the component cannot automatically map the data on the client side. As they are all "renamed".
An option to manually override the naming convention returned in the JSON would be really nice and usefully in this case.
Hi
Yes you are right, it is possible to define the root property on my client control, however:
ContractResolver = new CamelCasePropertyNamesContractResolver()
This is an issue, because my server model does not use camelCase, so when sending data to the client control, and the fields have been renamed (case sensitive), it does not work. We should implement a way to custom define if we want to format the response this way, also an option to define if we want result Indented, as this gives overhead when transmitting the data.