Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: Verify JSON Data Date: Mon, 26 May 2014 18:35:58 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 30 Message-ID: References: NNTP-Posting-Host: dsl.comtrol.com X-Trace: reader1.panix.com 1401129358 14557 64.122.56.22 (26 May 2014 18:35:58 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Mon, 26 May 2014 18:35:58 +0000 (UTC) User-Agent: slrn/1.0.1 (Linux) Xref: csiph.com comp.lang.python:72082 On 2014-05-26, gaurangnshah@gmail.com 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. > After searching on the internet i came across JSON module, however it > only coverts the JSON data to python. it's good, however the problem > comes when JSON response is very large. What's the problem? > Is there any module through which i can verify JSON file like DOM or > Object oriented way. ( i.e. data.key) I don't know what you're asking. -- Grant Edwards grant.b.edwards Yow! Actually, what I'd at like is a little toy gmail.com spaceship!!