call json constructor explicitly

This commit is contained in:
Benjamin Schmithüsen 2019-07-16 17:07:45 +02:00
parent c0b79afecc
commit f3ef880029

View File

@ -4828,7 +4828,7 @@ static void SerializeExtensionMap(ExtensionMap &extensions, json &o) {
if (!(extIt->first.empty())) { // name should not be empty, but for sure
// create empty object so that an extension name is still included in
// json.
extMap[extIt->first] = json({});
extMap[extIt->first] = json(std::initializer_list<nlohmann::detail::json_ref<nlohmann::basic_json<>>>());
}
}
}