![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/bcGtaE/btrocAYHS4s/3oZ8BNYsgmj7D1llpnE681/img.png)
Json 구조의 로그 파일 분석 Json 구조의 로그 파일을 분석하는 코드를 작성해보자. 간단한 설명은 주석을 참고해보자. Log file Example Line-by-line json type. 라인 단위로 Json 형태의 로그가 저장되어있는 파일이다. {"success":"true", "fileType":"pdf", "summary":[{"page_count":"3", "sentence_count":"20", "char_count":"80"}]} {"success":"true", "fileType":"docx", "summary":[{"page_count":"6", "sentence_count":"50", "char_count":"140"}]} Code import json import os file..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/bad3x1/btrfdYBS73T/Td5dqYCfmaS3PFIwVkKdL0/img.jpg)
#. Problem https://www.acmicpc.net/problem/21235 * The copyright in this matter is in acmicpc #. Resolution Process Read and understand problem Redefine the problem + abstract Create solution plan (select Algorithm, Data structure) Prove the plan (check performance time and usage memory) Carry out the plan Look back on the plan and find a way to improve it #. Solve N 은 최대 100이니까.. 배려심이 좋은 문제다. 각..
API 로 보통 JSON 파일을 response 할 수 있다.response 한 JSON 파일을 Parsing 해서 사용하는 법을 정리해보자! JSON Object 사용을 위해 JSON.simple import 가 필요하다.plugin으로 사용 시 "여기"를,jar 파일을 사용할 경우 "여기"를 참고해보면 좋을 것 같다. API Connection 방법은 아래 글을 참고해보자.[API] Java API Connection(HttpURLConnection, JSONObject) JSON Parsing 을 할 때,JSON 파일에 어떤 구조로 데이터가 저장되어있는지 먼저 잘 파악한 후,key 에 해당하는 value 를 객체에 알맞게 저장해주면 된다. .Java JSON Parsing .Example01 loc..