How to make a class JSON serializable,"{'age': 35, 'dog': {'name': 'Apollo'}, 'name': 'Onur'}"