use sorted_json to dump the config file