JSON Strict Mode

John Riselvato jdriselvato at gmail.com
Thu Aug 4 23:25:33 EDT 2011


I am working on a license verification script. I am rather new to the
concept and to JSON files in general.

This is what my pseudocode looks like:

licenses = meta['license']
> for x in licenses:
>     if licenses[x]['terms'] is not valid opensource license
>         if in strict mode
>             raise nonfree exception
>
> How would i go about checking if its in "strick mode" and what does "raise
nonfree exception" mean?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110804/eb8d8a22/attachment.html>


More information about the Python-list mailing list