Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smobile-jspark/b51794511c2d6043549da0f318bc7dfe to your computer and use it in GitHub Desktop.
Save smobile-jspark/b51794511c2d6043549da0f318bc7dfe to your computer and use it in GitHub Desktop.
큰 용량의 JSON 파일을 엑셀로 변환하기
parse, baas 등에서 table 을 export 하면 json 파일로 나오게 됩니다.
이때 json 파일이 용량이 커서 json -> excel 등의 online converter 등은 동작이 쉽지 않습니다.
제가 변환하는 방법은 아래와 같습니다.
1) vi 에서 json 파일을 연후 {results: 와 끝의 } 를 제거 하여 array 상태로 저장
2) python 을 이용하여 다음과 같이 처리
>>> import pandas
>>> pandas.read_json('1000009494_MakeGoodHabit_out.json').to_excel('makegoodhabit.xlsx')
@openpks93
Copy link

한글이 깨지는데 어떻게 해결하면 좋나요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment