Open VikneshSubramaniyan opened 1 month ago
I think the problem here is that the Piranha manager just uses the default MVC serialization that is applied using the [ApiController]
attribute. If you fundamentally change how JSON is serialized EVERYTHING will break since the JSON data that the Vue application gets will be different.
The solution to this is of course that the entire Piranha Manager should use it's own isolated JSON settings that can be vastly different from the settings of the main application, but unfortunately that's not how it works currently.
If I'm not mistake .NET supports configuring different JsonSettings per Area, so a workaround for this would be to configure custom application settings for a specific area where certain endpoints run.
The Piranha manager is breaking when we perform JSON serialization in AddMVC, so I called the serialization inside the Piranha manager. However, JSON serialization is still not working. Please help us.
public class Startup { public Startup(IConfiguration configuration, IHostingEnvironment env) { Configuration = configuration; var contentRoot = configuration.GetValue(WebHostDefaults.ContentRootKey);
}
}