Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use OrderedDict for json formating to preserve key ordering #294

Closed
wants to merge 3 commits into from
Closed

use OrderedDict for json formating to preserve key ordering #294

wants to merge 3 commits into from

Conversation

hubbyist
Copy link

passing collections.OrderedDict to "object_pairs_hook" option of json.load function and making "sort_keys" option in json.dumps function False

passing collections.OrderedDict to "object_pairs_hook" option of json.load function and making "sort_keys" option in json.dumps function False
@coveralls
Copy link

Coverage Status

Coverage decreased (-2.53%) when pulling 8bd5003 on hubbyist:patch-1 into 0481957 on jakubroztocil:master.

version checks for OrderedDict usage added. Uses OrderedDict if version is greater than 2.7 else uses "sort_keys=True" for pretty print.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) when pulling 766891d on hubbyist:patch-1 into 0481957 on jakubroztocil:master.

@hubbyist hubbyist closed this Jan 14, 2015
@hubbyist hubbyist reopened this Jan 14, 2015
@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) when pulling 766891d on hubbyist:patch-1 into 0481957 on jakubroztocil:master.

@hubbyist hubbyist closed this Jan 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants