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
Loading
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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal YelvePosted Jun 26, 2025, 4:30 PM
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
Lokendra SinghPosted Jun 25, 2025, 8:03 AM
If you are working with python.