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

Fix for the error Object of type datetime is not JSON serializable #92

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

atompie
Copy link

@atompie atompie commented Aug 19, 2022

Fixes the error when you try to to_dict() object that has datetime object or any object that can not be serialized to json.

@atompie atompie changed the title Fir for the error Object of type datetime is not JSON serializable Fix for the error Object of type datetime is not JSON serializable Aug 19, 2022
@atompie
Copy link
Author

atompie commented Sep 5, 2022

@pawelzny Hello is there any chance that this PR will be accepted? Or better we use fork in our project?

atompie added 4 commits June 12, 2023 01:01
Add __getstate__ and __setstate__ methods to Dotty class in
dotty_dict.py to enable pickling. Create a new test case in
test_pickling.py to verify the serialization and deserialization
process of Dotty objects using the pickle module.
feat: improve __delitem__ to remove empty parent dicts

Add new unit tests to ensure the correct deletion of nested keys
using the dotty dict syntax. Enhance the __delitem__ method to
recursively remove empty parent dictionaries after deleting a key.
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.

1 participant