프로그래밍/python
json 파일 다루기
이휘재123
2023. 1. 11. 19:47
반응형
with open(file_path, 'w', encoding='utf-8') as file:
json.dump(data, file, indent="\t")
json.dump()를 사용할 때 indent 옵션에 \t 을 추가해주면 들여쓰기를 인식하게 된다.
반응형