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

Using json.dump method to write json to file #87

Merged
merged 2 commits into from
May 30, 2020

Conversation

olehb
Copy link
Contributor

@olehb olehb commented May 30, 2020

Current implementation of to_json method relies on built-in print command. This command uses single quotes. It produces valid Python string, but invalid JSON.

This bugfix uses json.dump function to write json to a file.

@mattijn mattijn merged commit 8977103 into mattijn:master May 30, 2020
@mattijn
Copy link
Owner

mattijn commented May 30, 2020

Thanks for the issue and PR! Proposed makes sense and can be merged directly.

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