Skip to content
This repository was archived by the owner on Aug 26, 2019. It is now read-only.

Added parser to datetime and decimal to json and force cast 'path' to string; #5

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

Conversation

assisantunes
Copy link

I have a basic dict as follows:

sample = {}
sample['title'] = "String"
sample['somedate'] = somedatetimehere - example: datetime.now()

When I try to do jsonify(sample) I get:

TypeError: datetime.datetime(2012, 8, 8, 21, 46, 24, 862000) is not JSON serializable

AttributeError: 'int' object has no attribute 'lstrip'

@advance512
Copy link

please merge this in - especially commit 28a8f45 which fixes an extremely annoying bug.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
4 participants