Skip to content

Json SerializerSettings #2069

@VikneshSubramaniyan

Description

@VikneshSubramaniyan

Hi Tidyui,

I have faced the some issue. Before using Piranha, I used AddMVC. When I use the AddMVC function, it breaks the Piranha manager function. The code I provided below:

services.AddMvc(options => options.EnableEndpointRouting = true)
.AddNewtonsoftJson(options => options.SerializerSettings.ContractResolver = new DefaultContractResolver());

However, I tried to add internally in

options.UseManager(o =>
{
o.JsonOptions(options =>
{
// I don't know how to add here for JSON serialization
});
});.
Could you please give me an idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions