mikexstudios/python-firebase — pull request #5 by assisantunes (2014-01-07 03:00:53+00:00)
Title: Added parser to datetime and decimal to json

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