<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 10, 2013 at 9:09 AM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra">Don't disagree with any of your reasons, however, there is very little work wasted here. Most of the coding</div>
<div class="gmail_extra">is adding new methods, hooking up Python, etc. and not writing the two lines for output. Thus, adding JSON</div>
<div class="gmail_extra">later will be all new work, and will invalid hardly anything. This is modularity :)</div></blockquote></div><br>Sounds good, though I don't understand "hooking up Python". Are you doing the validation itself in C or Python? If the latter, then just write JSON (no library needed, basically identical to python dict and array notation) and parse it using the Python standard library:<br>
<br></div><div class="gmail_extra">import json</div><div class="gmail_extra" style>python_dict = json.load(open('the-file.json'))</div></div>