json.dumps(my_dictionary, indent=4, sort_keys=True, default=str)
#Convert the date to a string sample['somedate'] = str( datetime.utcnow() )