json 파싱 썸네일형 리스트형 [java] java JSON 데이터 파싱 java JSON 데이터 파싱 자바 코드안에서 해당 URL 접속 후 응답받은 JSON객체를 파싱하는 예제 JSON Simple maven dependency com.googlecode.json-simplejson-simple1.1.1 Methodtry{// 위도, 경도String location = lat + "," + lng;// APIString weatherApi = "http://api.wunderground.com/api/" + apikey + "/conditions/lang:us/q/" + location + ".json"; // java.net.URLURL url = new URL(weatherApi);// Connection 객체를 InputStreamReader로 읽고 utf-8로 인코딩.. 더보기 이전 1 다음