diff --git a/Plugins/Json/src/ExtentJsonConverter.cpp b/Plugins/Json/src/ExtentJsonConverter.cpp index 1ae916e17ed..e6b4dac4f07 100644 --- a/Plugins/Json/src/ExtentJsonConverter.cpp +++ b/Plugins/Json/src/ExtentJsonConverter.cpp @@ -27,7 +27,7 @@ void Acts::from_json(const nlohmann::json& j, Acts::Extent& e) { const auto bValueNames = binningValueNames(); for (auto [ib, bvn] : enumerate(bValueNames)) { if (j.find(bvn) != j.end()) { - e.set(static_cast(ib), j[bvn]["min"], j[bvn]["max"]); + e.range(static_cast(ib)) = j[bvn]; } } -} \ No newline at end of file +}