diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-20 15:23:54 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-20 15:23:54 +0100 |
commit | 81156d180847bf9ba502a25e546723f234d0e2c9 (patch) | |
tree | d761c77b3c196fa616161d58e68ec53546705cb0 | |
parent | 833ba009037ebec6dcce1688b9bfd59ae1049304 (diff) |
serialize: indent json by 2 spaces
-rw-r--r-- | serialize/json-helper.cpp | 2 |
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 |