On Tuesday, May 27, 2014 12:05:58 AM UTC+5:30, Grant Edwards wrote: > On 2014-05-26, gaurang shah wrote: > > Would someone let me know how to verify JSON data in python.
> Parse the file into a data structure with whatever parser you like, > then write a program to go thorugh the data structure and verify it. > > There are so many modules available to verify XML file, however i > > didn't find any good module to verify JSON Data. > XML has various "schema" languages which can be used to write a > definition of what is valid and what isn't valid. > There really is anything like that in widespread use for JSON. Google offers: https://pypi.python.org/pypi/jsonschema http://python-jsonschema.readthedocs.org/en/latest/validate/ -- https://mail.python.org/mailman/listinfo/python-list