In api input will be xml or json, there should be some validations to be performed on input data. Please let me know how to implement it
Validation in api
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
In api input will be xml or json, there should be some validations to be performed on input data. Please let me know how to implement it
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Lokendra SinghRank #279 · 8.8K reputationPosted Jun 25, 2025, 4:03 AM EDT
If you are working with python.
Vishal YelveRank #178 · 13.6K reputationPosted Jun 26, 2025, 12:30 PM EDT
Hi Ani,
Do refer to the links below
JSON Validator
https://dev.to/iamrule/how-to-c-validating-a-json-to-a-json-schema-3mle
https://code-maze.com/csharp-how-to-ensure-a-string-is-valid-json/
XML Validator
https://learn.microsoft.com/en-us/dotnet/api/system.xml.xmldocument.validate?view=net-9.0