From 81156d180847bf9ba502a25e546723f234d0e2c9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 20 Mar 2023 15:23:54 +0100 Subject: serialize: indent json by 2 spaces --- serialize/json-helper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serialize/json-helper.cpp b/serialize/json-helper.cpp index c350f92e..695b76ef 100644 --- a/serialize/json-helper.cpp +++ b/serialize/json-helper.cpp @@ -41,7 +41,7 @@ auto json_helper::from_json_(StringView filename) noexcept(false) -> json void json_helper::to_json_(const json& j, StringView filename) noexcept(false) { - (open_stream(filename) << j.dump(1, '\t') << '\n').flush(); + (open_stream(filename) << j.dump(2, ' ') << '\n').flush(); } } // namespace floormat -- cgit v1.2.3