You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My colleague use NewtonsoftJson.DefaultContractResolver as Json Serializer.
so the result becomes {"Status":1,"Message":"Product saved.","RedirectUri":null,"RedirectDelay":null,"Object":null,"ValidationErrors":null,"IsSucceed":true}
my current workaround: var settings = new JsonSerializerSettings { ContractResolver = new CamelCasePropertyNamesContractResolver() }; return Json(new FormResult(FormResultStatus.Success) { Message = "Product saved." }, settings);
Any other suggestions for this?
The text was updated successfully, but these errors were encountered:
My colleague use NewtonsoftJson.DefaultContractResolver as Json Serializer.
so the result becomes
{"Status":1,"Message":"Product saved.","RedirectUri":null,"RedirectDelay":null,"Object":null,"ValidationErrors":null,"IsSucceed":true}
my current workaround:
var settings = new JsonSerializerSettings { ContractResolver = new CamelCasePropertyNamesContractResolver() }; return Json(new FormResult(FormResultStatus.Success) { Message = "Product saved." }, settings);
Any other suggestions for this?
The text was updated successfully, but these errors were encountered: