-
Hello, currently we try to change our json formatting gradually over our apis. Unfortunately while searching the whole internet, we would not find anything to make that happen. i.e. there is a lot of old code how it works, but neither code works since it's basically impossible to change InputFormatters for a single controller. Currently for OutputFormatters it's extremely easy:
add it to a base controller:
and it works on all controllers that use Api2ControllerBase. Unfortunatlly for Input data things are a little bit different and I found basically no easy way of doing that. is there a way to do it? or is this basically not possible as of today? i.e. it would also make it easier to move to Text.Json instead of using Newtonsoft json for older projects. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok found something: |
Beta Was this translation helpful? Give feedback.
Ok found something:
https://blogs.taiga.nl/martijn/2020/05/28/system-text-json-and-newtonsoft-json-side-by-side-in-asp-net-core/