간단하게 vim에서 json 파일 포맷하는 방법은
vim command로 아래를 실행하면 손쉽게 포맷이 된다.
:%!python -m json.tool
한글이 깨지는 문제가 종종 발생한다.
그러를 때에는, 아래와 같이 하면 된다.
$> printf "$(cat station.list | python -m json.tool)" > station.list
간단하게 vim에서 json 파일 포맷하는 방법은
vim command로 아래를 실행하면 손쉽게 포맷이 된다.
:%!python -m json.tool
한글이 깨지는 문제가 종종 발생한다.
그러를 때에는, 아래와 같이 하면 된다.
$> printf "$(cat station.list | python -m json.tool)" > station.list
Comments