private String formatResult(JsonObject result) {
        // format output results
        return new GsonBuilder().setPrettyPrinting().create().toJson(result);
    }
Convert json content to specific output format

@param result JsonObject
@return formatted results
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/tools/cli/CliWebapiAdmin.java