Baguage / pyqualtrics

Unofficial python SDK for Qualtrics API
Apache License 2.0
33 stars 7 forks source link

preserve order of responses in getLegacyResponseData #17

Closed Baguage closed 8 years ago

Baguage commented 8 years ago

Per http://stackoverflow.com/questions/6921699/can-i-get-json-to-load-into-an-ordereddict-in-python

my_ordered_dict = json.loads(json_str, object_pairs_hook=collections.OrderedDict)

This is important if client want to use LastResponseID: Each response is recorded sequentially. When specified it will export all responses after the id specified. Regular python dictionary will mess up the order.