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

Improve sample codes about json.dumps usage #51

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

peter279k
Copy link

With your PR, here is a check list:

  • Has test cases written?
  • Has all code lines tested?
  • Has make format been run?
  • Please update CHANGELOG.yml(not CHANGELOG.rst)
  • Has fair amount of documentation if your change is complex
  • Agree on NEW BSD License for your contribution

Sometimes it will throw the "datetime.datetime not JSON serializable"? exception error when using the json.dumps method.
To avoid throwing the above exception message, it should add the default parameter with the str value. And it can be great to use json.dumps method without throwing the exception message.

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

1 participant