python-firebase
python-firebase copied to clipboard
Added parser to datetime and decimal to json and force cast 'path' to string;
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'
please merge this in - especially commit 28a8f45d7b18e487d6ddf85c136f814efd389843 which fixes an extremely annoying bug.