Skip to content

Help on #41471 use my own NewtonsoftJsonInputFormatter #41883

@DaveLaa

Description

@DaveLaa

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Status: Resolvedold-area-web-frameworks-do-not-use*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions