JSON only knows strings, numbers, booleans, null, arrays and objects. What happens to Python values that don't fit perfectly?
import json data = {1: ("amber", "teal"), "lit": True} copy = json.loads(json.dumps(data)) print(copy)
{'1': ['amber', 'teal'], 'lit': True}
{'1': ('amber', 'teal'), 'lit': 'true'}
{1: ['amber', 'teal'], 'lit': true}
{1: ('amber', 'teal'), 'lit': True}