Hi,
I want to use Model State to return a custom failure response when invalid JSON is provided (for the request body, for example). The issue is, I am not sure what the best way to do this is because the errors messages do not have an associated exception with them.
What can I do so that my filter can successfully only return early on JSON errors?
If it helps, I am using the Newtonsoft JSON package.
Thanks for any help!