-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
It is sad to hear that #41471 will not be fixed in .Net 6.
I was migrating from .Net Framework to .Net 5 and then up to .Net 6 and this is the only breaking change in the core framework that prevents my project to run. My frontend developers have to work through milions of lines of code just to fix problems that have not been there in .Net Framework before, just because the NewtonsoftJsonInputFormatter is not error tollerant like the old mechanism was.
But ok.
Can you plz tell me how i can "deserialize the message body" myself then (like halter73 suggested in #41471 (comment))? I mean I dont want to rewrite the complete Microsoft.AspNetCore.Mvc.NewtonsoftJson project just to add this one line of code... Is there a simple way to just override the NewtonsoftJsonInputFormatter with my own implementation and activate and use my class?