How did you make them? Using XML and JSON components or using your custom routines?
Built without errors using professional components probably are safe.
A way to check small unknown XML/JSON streams is using an online parser like THIS ONE that converts XML to JSON and back and reports broken ones.
www.utilities-online.info says nothing when I press the XML to JSON button, it only generates a JSON file from the copied XML.
I introduced an error in my XML text (I removed an ending tag) and I get a warning about it. It seems my XML is correct.
JSON to XML convert does not make an error too.
So it seems safe at structural level, if you have problems in the future, they could occur at data level, like not correctly encoded strings with non-printable ASCII for example.
I use Oxygen https://www.oxygenxml.com for all my xml work… It is not cheap but has an extensive feature set… including SOAP, XSLT and JSON conversions.
give them your data:
I do not care about the data because it comes from a csv I found in the internet, is outdated and the people in this data are Politicians…
I only had to move some columns (First Name / Family Name, Birth Dates) to be in tune with my display ListBox…
Why working with two or three Records when you can get hundred for free (575 to be exact in this case) !!!
That said, I do not imagined there was web site that “validate” (or reject) this kind of stuff.
BTW: about encoding; I have in the first line of the xml exported file:
<?xml version="1.0" encoding="UTF-8"?>
The original text was encoded as UTF-8 at import time, so I suppose its Encoding is UTF8 in JSON too…