diff --git a/include/utils/jsonrpc/server.h b/include/utils/jsonrpc/server.h index 52680683..e81adad5 100644 --- a/include/utils/jsonrpc/server.h +++ b/include/utils/jsonrpc/server.h @@ -45,11 +45,11 @@ class JsonRpc2Server : public JsonRpcServer { result.push_back(std::move(res)); } } - return result.dump(); + return result.dump(-1, ' ', false, json::error_handler_t::replace); } else if (request.is_object()) { json res = HandleSingleRequest(request); if (!res.is_null()) { - return res.dump(); + return res.dump(-1, ' ', false, json::error_handler_t::replace); } else { return ""; }