use new JSONObject::serialize

This commit is contained in:
Martin Michelsen
2023-04-30 10:04:06 -07:00
parent 42fa3955d8
commit 617cf73c5e
+1 -1
View File
@@ -691,7 +691,7 @@ void TournamentIndex::save() const {
}
}
auto json = make_json_list(move(list));
save_file(this->state_filename, json->format());
save_file(this->state_filename, json->serialize(JSONObject::SerializeOption::FORMAT));
}
vector<shared_ptr<Tournament>> TournamentIndex::all_tournaments() const {