Adds sort_keys=True to avoid changes due to keys sorting.