From 2dd52c044642277731f17417066368f71b31c778 Mon Sep 17 00:00:00 2001
From: Michael Davis <michael.davis@cern.ch>
Date: Thu, 6 Jun 2019 16:18:54 +0200
Subject: [PATCH] [cta-admin] Fixes #525 display JSON ] if no results

---
 cmdline/CtaAdminCmd.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmdline/CtaAdminCmd.hpp b/cmdline/CtaAdminCmd.hpp
index 5fbd554251..f86617efd0 100644
--- a/cmdline/CtaAdminCmd.hpp
+++ b/cmdline/CtaAdminCmd.hpp
@@ -40,7 +40,7 @@ public:
       return c;
    }
    static std::string jsonCloseDelim() {
-      return is_first_record ? "" : "]";
+      return is_first_record ? "[]" : "]";
    }
 
    // Static method to convert time to string
-- 
GitLab