diff --git a/src/command.cpp b/src/command.cpp index c3c066cae..c89c1f864 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -596,7 +596,7 @@ int handleQuery (std::string& outs) // Note: "limit:" feature not supported. // Compose output. - outs = "{"; + outs = "["; std::vector ::iterator t; for (t = tasks.begin (); t != tasks.end (); ++t) { @@ -606,7 +606,7 @@ int handleQuery (std::string& outs) outs += t->composeJSON (); } - outs += "}\n"; + outs += "]\n"; context.hooks.trigger ("post-query-command"); }