diff --git a/components/livestatus/query.cpp b/components/livestatus/query.cpp index 9c19b3ac1..74513257e 100644 --- a/components/livestatus/query.cpp +++ b/components/livestatus/query.cpp @@ -280,7 +280,22 @@ void Query::PrintResultSet(std::ostream& fp, const std::vector& columns, else fp << ";"; - fp << Convert::ToString(value); + if (value.IsObjectType()) { + bool first_inner = true; + Array::Ptr arr = static_cast(value); + + ObjectLock rlock(arr); + BOOST_FOREACH(const Value& arr_val, arr) { + if (first_inner) + first_inner = false; + else + fp << ","; + + fp << Convert::ToString(arr_val); + } + } else { + fp << Convert::ToString(value); + } } fp << "\n";