python-firebase icon indicating copy to clipboard operation
python-firebase copied to clipboard

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

Open assisantunes opened this issue 11 years ago • 1 comments

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'

assisantunes avatar Jan 07 '14 03:01 assisantunes

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

advance512 avatar Dec 18 '14 22:12 advance512