Check Post API data valid Json or not in .net core Web API

Binumon George 161 Reputation points
2023-01-13T11:29:30.3233333+00:00

Hi All,

 I am creating one Post API for external Users. API  included string, DateTime, Integer  fields.  This may contain List of datas. So  there is a possibilities like user can enter string values in int and datetime fields. So how we can prevent user entering wrong values in fields and how we can check data is Valid Json or not. I am using .net core 6.  There is Another possibilities user can call this API programatically and assign datas
Developer technologies ASP.NET ASP.NET Core
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.