I created a custom model binder in my .NET core 3.1 api to validate all JSON parameters (by the help of this post How to validate json request body as valid json in asp.net