From b2c0f44a7d84a7d0fa0b9b613121a00fdb1ac01b Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Wed, 5 Mar 2025 14:24:17 -0600 Subject: [PATCH] fix initial file creation --- repertory/repertory/src/ui/mgmt_app_config.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/repertory/repertory/src/ui/mgmt_app_config.cpp b/repertory/repertory/src/ui/mgmt_app_config.cpp index b1b2892a..fa139a9d 100644 --- a/repertory/repertory/src/ui/mgmt_app_config.cpp +++ b/repertory/repertory/src/ui/mgmt_app_config.cpp @@ -35,10 +35,10 @@ namespace { std::unordered_map> map_of_maps{ - {repertory::provider_type::encrypt, {}}, - {repertory::provider_type::remote, {}}, - {repertory::provider_type::s3, {}}, - {repertory::provider_type::sia, {}}, + {repertory::provider_type::encrypt, nlohmann::json::object()}, + {repertory::provider_type::remote, nlohmann::json::object()}, + {repertory::provider_type::s3, nlohmann::json::object()}, + {repertory::provider_type::sia, nlohmann::json::object()}, }; for (const auto &[prov, map] : map_of_maps) { @@ -56,7 +56,7 @@ namespace { } [[nodiscard]] auto to_json(const auto &map_of_maps) -> nlohmann::json { - nlohmann::json json; + auto json = nlohmann::json::object(); for (const auto &[prov, map] : map_of_maps) { for (const auto &[key, value] : map) { json[repertory::provider_type_to_string(prov)][key] = value;