I am trying to dump this json -
{'total_run_count': 9, 'task': 'tasks.add', 'enabled': True, 'schedule': {'period': 'seconds', 'every': 3}, 'kwargs': {'max_targets': 100}, 'running': False, 'options': {}, 'delete_key': 'deleted:tasks:meta:newtask', 'name': b'tasks:meta:newtask', 'last_run_at': datetime.datetime(2016, 10, 3, 19, 9, 50, 162098), 'args': ['3', '2'], 'key': 'tasks:meta:newtask'}
and it fails for the key 'name'. I have decoded it in utf-8 but still not luck. I am getting the following error.
TypeError: 'tasks:meta:newtask' is not JSON serializable
what is not serializable about the above string ? I am clueless.