Re: Data Integrity Parsing json

2018-04-26 Thread Alister via Python-list
On Wed, 25 Apr 2018 14:32:01 -0700, Sayth Renshaw wrote:

> Hi
> 
> Hoping for guidance trying to find some advanced articles or guides or
> topics for json parsing.
> 
> I can parse and extract json just dandy.
> 
> What I am trying to figure out is how I give myself surety that the data
> I parse out is correct or will fail in an expected way.
> 
> All the articles I search are just basic parsing tutorials.
> 
> Can you help with some advice or perhaps some saved away bookmarks you
> have that could be useful.
> 
> Cheers
> 
> Sayth

is there any reason you appear to be re-inventing the wheel rather than 
using the existing json module from the std library?



-- 
"Well, if you can't believe what you read in a comic book, what 
*___can*
you believe?!"
-- Bullwinkle J. Moose [Jay Ward]
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Data Integrity Parsing json

2018-04-25 Thread Sayth Renshaw
On Thursday, 26 April 2018 07:57:28 UTC+10, Paul Rubin  wrote:
> Sayth Renshaw  writes:
> > What I am trying to figure out is how I give myself surety that the
> > data I parse out is correct or will fail in an expected way.
> 
> JSON is messier than people think.  Here's an article with some
> explanation and test code:
> 
>   http://seriot.ch/parsing_json.php

Thanks Paul there is a lot of good information in that article.

Sayth
-- 
https://mail.python.org/mailman/listinfo/python-list