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

Preserve key order in output #1

Open
waldoj opened this issue Jan 5, 2014 · 0 comments
Open

Preserve key order in output #1

waldoj opened this issue Jan 5, 2014 · 0 comments

Comments

@waldoj
Copy link
Member

waldoj commented Jan 5, 2014

Python's csv.DictReader doesn't maintain order (since it's a dictionary), so the resulting JSON is out of order. Given that CSV files often have columns in a particular order (often with the most important information listed first), we should maintain that order. This Stack Overflow answer suggests how to accomplish that.

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

No branches or pull requests

1 participant