I have a basic dict as follows:
sample = {} sample[\'title\'] = \"String\" sample[\'somedate\'] = somedatetimehere
My quick & dirty JSON dump that eats dates and everything:
json.dumps(my_dictionary, indent=4, sort_keys=True, default=str)