We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d1a2a9 commit edc4112Copy full SHA for edc4112
lib/base/json.cpp
@@ -142,7 +142,7 @@ String icinga::JsonEncode(const Value& value, bool pretty_print)
142
void icinga::JsonEncode(const Value& value, std::ostream& os, bool pretty_print)
143
{
144
using namespace nlohmann;
145
- detail::serializer<json> s(nlohmann::detail::output_adapter(os), ' ', json::error_handler_t::strict);
+ detail::serializer<json> s(detail::output_adapter<char>(os), ' ', json::error_handler_t::strict);
146
s.dump(json(value), pretty_print, true, pretty_print ? l_JsonIndentSize : 0);
147
}
148
0 commit comments