Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How do I check for the well formed XML or JSON

Hi,

I want to check if the JSON or XML are well formed and raise an error if they are not. Please suggest the ways I can do this in Edge.

Solved Solved
0 7 2,863
1 ACCEPTED SOLUTION

If JSON, you can run a JS policy that simply performs JSON.parse().

If it works, then it is well formed.

View solution in original post

7 REPLIES 7