-
-
Notifications
You must be signed in to change notification settings - Fork 564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Json SerializerSettings #2069
Comments
There seems to be a typo in the official documentation. This would be the correct way to add the options in your builder.AddPiranha(options =>
{
...
options.UseManager(o => {
o.JsonOptions = (jsonOptions) =>
{
jsonOptions.SerializerSettings.ContractResolver = new DefaultContractResolver();
};
});
...
}); Regards |
using System; namespace SendbackPortal
} still piranha manger function is breaking ..JSON serialization did not work |
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?
The text was updated successfully, but these errors were encountered: