Which json.dumps argument sorts the keys alphabetically in Python?
Correct answer
D. sort_keys=True
5 views
D. sort_keys=True
5 views
sort_keys=True outputs keys in sorted order.
Asked in: Python Interview Standard Library
https://docs.python.org/3/library/index.htmlNot sure why the answer is D? Ask here and get an explanation.