healchow commented on code in PR #4712:
URL: https://github.com/apache/inlong/pull/4712#discussion_r902359778


##########
inlong-manager/manager-client/src/main/java/org/apache/inlong/manager/client/api/inner/InnerInlongManagerClient.java:
##########
@@ -144,12 +149,21 @@ public Boolean isGroupExists(String inlongGroupId) {
     /**
      * Get information of group.
      */
+    @SneakyThrows
     public InlongGroupInfo getGroupInfo(String inlongGroupId) {
         AssertUtils.notEmpty(inlongGroupId, "InlongGroupId should not be 
empty");
 
-        Response<InlongGroupInfo> responseBody = 
executeHttpCall(inlongGroupApi.getGroupInfo(inlongGroupId));
+        Response<Object> responseBody = 
executeHttpCall(inlongGroupApi.getGroupInfo(inlongGroupId));
         if (responseBody.isSuccess()) {
-            return responseBody.getData();
+            JSONObject groupInfoJson = JsonUtils.parseObject(
+                    
JsonUtils.toJsonString(JsonUtils.toJsonString(responseBody.getData())),

Review Comment:
   Why call `toJsonString` 2 times here?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to