yu199195 commented on code in PR #3914:
URL: https://github.com/apache/shenyu/pull/3914#discussion_r962449303
##########
shenyu-common/src/main/java/org/apache/shenyu/common/utils/GsonUtils.java:
##########
@@ -326,7 +326,13 @@ private List<Object> jsonArrayToListInConvertToMap(final
JsonArray jsonArray) {
list.add(null);
continue;
}
- String objStr = jsonElement.getAsString();
+ String objStr;
+ if (jsonElement instanceof JsonObject) {
+ JsonObject asJsonObject = jsonElement.getAsJsonObject();
+ objStr = new GsonUtils().toJson(asJsonObject);
Review Comment:
not used new GsonUtils().toJson(asJsonObject);
--
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]