Python - Structured Data Files
You have a nested dictionary:
Which code correctly formats this data as pretty JSON with 4 spaces indentation and sorted keys at all levels?
data = {'person': {'name': 'Eve', 'age': 28}, 'city': 'Paris'}Which code correctly formats this data as pretty JSON with 4 spaces indentation and sorted keys at all levels?
