Json Data Parse in Java
gson + common-io 아래의 dependency libarary 를 필요로합니다. commons-io commons-io 2.4 com.google.code.gson gson 2.8.0 Gson gson = new Gson(); // list 객체 InputStream in = new URL("http://" + hostname + ":" + port + "/caseinfo?name_chk_key_di=" + caseInfoVO.getName_chk_key_di()).openStream(); String jsonString = IOUtils.toString(in,"UTF-8"); List caseInfoList = gson.fromJson(jsonString, new TypeToken(){}.g..
JAVA
2017. 6. 25. 14:29