diff --git a/service/OneService.cpp b/service/OneService.cpp index 1154168ec..29a7ed894 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -1627,7 +1627,7 @@ public: _controlPlane.Get("/moon", [&](const httplib::Request &req, httplib::Response &res) { std::vector moons(_node->moons()); - auto out = json::object(); + auto out = json::array(); for (auto i = moons.begin(); i != moons.end(); ++i) { json mj; _moonToJson(mj, *i);