diff --git a/libebpfdiscovery/src/Discovery.cpp b/libebpfdiscovery/src/Discovery.cpp index 8c52d69..71c7498 100644 --- a/libebpfdiscovery/src/Discovery.cpp +++ b/libebpfdiscovery/src/Discovery.cpp @@ -63,8 +63,9 @@ void Discovery::outputServicesToStdout() { return; } - boost::json::object outJson{{"services", boost::json::value_from(services)}}; + boost::json::object outJson{{"service", boost::json::value_from(services)}}; boost::json::ext::print(std::cout, outJson); + std::cout << std::endl; serviceAggregator.clear(); }