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