Im using newtonsoft json.net http://json.codeplex.com/ and I would like to know …
how to validate json and xml are valid json/xml.
how do i verify this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Where you want to validate json, on server side or on client side.
Assuming you want to do it on server side, try deserializing the json string. if it breaks, then its not a valid json. Use JavaScriptSerializer for deserializing purpose