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