diff --git a/src/main/java/iudx/resource/server/apiserver/ApiServerVerticle.java b/src/main/java/iudx/resource/server/apiserver/ApiServerVerticle.java index fdc4b066..42cd19f1 100644 --- a/src/main/java/iudx/resource/server/apiserver/ApiServerVerticle.java +++ b/src/main/java/iudx/resource/server/apiserver/ApiServerVerticle.java @@ -1024,8 +1024,7 @@ private void handleSubscriptions(RoutingContext routingContext) { subHandler -> { if (subHandler.succeeded()) { LOGGER.info("Success: Handle Subscription request;"); - JsonObject object = - new JsonObject(subHandler.result().getJsonArray("results").getString(0)); + JsonObject object =subHandler.result().getJsonArray("results").getJsonObject(0); routingContext.data().put(RESPONSE_SIZE, 0); JsonObject message =