json 구분 (1) 썸네일형 리스트형 java-Json Return Array or Object구분 Json을 리턴 받으면서 Array인지 Object인지 구분해야 하는 경우가 있다 Array도 가끔 Object로 받는 경우가 생긴다. Array가 1개인 경우 리턴값이 List가 아닌 Object로 던지면서 문제가 발생한다. java.lang.ClassCastException: org.json.simple.JSONObject cannot be cast to org.json.simple.JSONArray at com.htsmgroup.advertisingWeb.controller.apiBatchManage.DataFindHsptlBatchRestController.getApiV1HsptFindInfo(DataFindHsptlBatchRestController.java:88) at sun.reflect.N.. 이전 1 다음