Skip to content

Support Pascal Case Json Serializer? #35

@cyuz

Description

@cyuz

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions