detect key conflict in a JSON file
Roy Smith
roy at panix.com
Wed May 29 11:20:59 EDT 2013
On May 29, 2013, at 9:41 AM, Jabba Laci wrote:
>> The real answer here is that JSON is probably not the best choice for
>> large files that get hand-edited. For data that you intend to hand-edit
>> a lot, YAML might be a better choice.
>>
>>> Currently the value of the second key silently overwrites the value of
>>> the first.
>
> Thanks but how would it be different with YAML? Can YAML check duplicate keys?
Oh, I didn't mean to imply that. I was just pointing out that in general, YAML is more friendly for hand-editing than JSON. They both have the same GIGO issue.
> How to process (read) YAML files in Python?
Take a look at http://pyyaml.org/
---
Roy Smith
roy at panix.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130529/c3185609/attachment.html>
More information about the Python-list
mailing list