Python - Structured Data Files
Given a list of dictionaries:
Which code snippet formats this list as JSON sorted by the 'id' key inside each dictionary?
data = [{'id': 3, 'value': 10}, {'id': 1, 'value': 20}, {'id': 2, 'value': 15}]Which code snippet formats this list as JSON sorted by the 'id' key inside each dictionary?
