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

dump() generates invalid JSON #5

Merged
merged 1 commit into from Jun 10, 2012
Merged

dump() generates invalid JSON #5

merged 1 commit into from Jun 10, 2012

Conversation

Tenzer
Copy link
Contributor

@Tenzer Tenzer commented Jun 9, 2012

The last object had a comma at the end, which is invalid in JSON. This commit checks if we are working on the last item in the dump, and if we are, we don't print the comma at then end - and line break, which removes the blank line above the final }.

The last object had a comma at the end, which is invalid in JSON.
chjj added a commit that referenced this pull request Jun 10, 2012
dump() generates invalid JSON
@chjj chjj merged commit 7cec29e into chjj:master Jun 10, 2012
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