KJB_ROOTLESS_ARRAY -> kjbrootlessarray
This commit is contained in:
@@ -37,8 +37,8 @@ public class ApiResponseAdvice implements ResponseBodyAdvice<Object> {
|
||||
try {
|
||||
Object root = JSONValue.parse(body);
|
||||
|
||||
if (root instanceof JSONObject && ((JSONObject) root).containsKey("KJB_ROOTLESS_ARRAY")) {
|
||||
JSONArray jsonArray = (JSONArray) ((JSONObject) root).get("KJB_ROOTLESS_ARRAY");
|
||||
if (root instanceof JSONObject && ((JSONObject) root).containsKey("kjbrootlessarray")) {
|
||||
JSONArray jsonArray = (JSONArray) ((JSONObject) root).get("kjbrootlessarray");
|
||||
return jsonArray.toJSONString();
|
||||
} else {
|
||||
return body;
|
||||
|
||||
Reference in New Issue
Block a user