summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-20 15:23:54 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-20 15:23:54 +0100
commit81156d180847bf9ba502a25e546723f234d0e2c9 (patch)
treed761c77b3c196fa616161d58e68ec53546705cb0
parent833ba009037ebec6dcce1688b9bfd59ae1049304 (diff)
serialize: indent json by 2 spaces
-rw-r--r--serialize/json-helper.cpp2
1 files changed, 1 insertions, 1 deletions
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<std::ofstream, std::ios_base::out>(filename) << j.dump(1, '\t') << '\n').flush();
+ (open_stream<std::ofstream, std::ios_base::out>(filename) << j.dump(2, ' ') << '\n').flush();
}
} // namespace floormat