urschrei / pyzotero

Pyzotero: a Python client for the Zotero API
https://pyzotero.readthedocs.org
Other
911 stars 100 forks source link

Ordered json loads #21

Closed ptgolden closed 11 years ago

ptgolden commented 11 years ago

When the Zotero API returns a JSON representation of an item, the keys are ordered in a way that is meaningful for a human editing that item. Item type is first, then title and authors, and so on. If a JSON return is loaded with OrderedDict instead of dict, this order can be preserved. This adds an argument to Zotero() to allow doing that.

urschrei commented 11 years ago

Thanks! This looks great – I'll review it and merge as soon as I have time.

urschrei commented 11 years ago

Merged and uploaded to PyPI. Thanks again!

ptgolden commented 11 years ago

Great, thanks! We interface with Zotero pretty extensively in Editors' Notes, but I'd just been using the API more or less haphazardly. I'm looking forward to using pyZotero instead.