-
JSON File을 Object로 가져오기JAVA 2013. 1. 9. 11:03
http://stackoverflow.com/questions/3000778/how-to-parse-json-file 가져오는 함수..public static T fileToObject(File src, Class valueType) throws JsonParseException, JsonMappingException, IOException { // Deserialize input to Json object ObjectMapper mapper = new ObjectMapper(); T jsonSource = mapper.readValue(src, valueType); return jsonSource; } 함수의 사용..HAR har = EasyJsonUtils.fileToObject(fileSource,..