diff --git a/support/src/utils/file.cpp b/support/src/utils/file.cpp index ceabfab9..e58a9a44 100644 --- a/support/src/utils/file.cpp +++ b/support/src/utils/file.cpp @@ -434,7 +434,7 @@ auto write_json_file(std::string_view path, #if defined(PROJECT_ENABLE_LIBSODIUM) && defined(PROJECT_ENABLE_BOOST) if (password.has_value()) { - const auto str_data = data.dump(); + const auto str_data = data.dump(2); data_buffer encrypted_data{}; utils::encryption::encrypt_data( @@ -444,7 +444,7 @@ auto write_json_file(std::string_view path, } #endif // defined(PROJECT_ENABLE_LIBSODIUM) && defined(PROJECT_ENABLE_BOOST) - auto json_str = data.dump(); + auto json_str = data.dump(2); return file->write( reinterpret_cast(json_str.c_str()), json_str.size(), 0U);