KJB_ROOTLESS_ARRAY -> kjbrootlessarray
This commit is contained in:
+3
-3
@@ -980,9 +980,9 @@ public class HttpClient5AdapterServiceRest extends HttpClient5AdapterServiceSupp
|
||||
|
||||
if (eaiBody instanceof JSONObject) {
|
||||
JSONObject jsonObject = (JSONObject) eaiBody;
|
||||
if( jsonObject.containsKey("KJB_ROOTLESS_ARRAY") ) {
|
||||
if( jsonObject.containsKey("kjbrootlessarray") ) {
|
||||
ContentType contentTypeObj = ContentType.create(contentType, charset);
|
||||
JSONArray array = (JSONArray) jsonObject.get("KJB_ROOTLESS_ARRAY");
|
||||
JSONArray array = (JSONArray) jsonObject.get("kjbrootlessarray");
|
||||
StringEntity entity = new StringEntity(array.toJSONString(), contentTypeObj);
|
||||
method.setEntity(entity);
|
||||
return;
|
||||
@@ -1507,7 +1507,7 @@ public class HttpClient5AdapterServiceRest extends HttpClient5AdapterServiceSupp
|
||||
} else if (obj instanceof JSONArray) {
|
||||
// 배열일 경우 새로운 객체로 감싸서 반환
|
||||
JSONObject wrapper = new JSONObject();
|
||||
wrapper.put("KJB_ROOTLESS_ARRAY", obj);
|
||||
wrapper.put("kjbrootlessarray", obj);
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -189,7 +189,7 @@ public class HttpAdapterServiceStandard extends HttpAdapterServiceSupport
|
||||
Object root = JSONValue.parse(body);
|
||||
if( root instanceof JSONArray ) {
|
||||
JSONObject wrappedObject = new JSONObject();
|
||||
wrappedObject.put("KJB_ROOTLESS_ARRAY", root);
|
||||
wrappedObject.put("kjbrootlessarray", root);
|
||||
requestBytes = wrappedObject.toJSONString().getBytes(encode);
|
||||
}
|
||||
|
||||
@@ -253,7 +253,7 @@ public class HttpAdapterServiceStandard extends HttpAdapterServiceSupport
|
||||
Object root = JSONValue.parse(responseData);
|
||||
if( root instanceof JSONObject ) {
|
||||
JSONObject wrappedObject = (JSONObject) root;
|
||||
responseData = wrappedObject.get("KJB_ROOTLESS_ARRAY").toString();
|
||||
responseData = wrappedObject.get("kjbrootlessarray").toString();
|
||||
}
|
||||
|
||||
}catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user