코딩일기

TypeError: the JSON object must be str, bytes or bytearray, not TextIOWrapper 본문

카테고리 없음

TypeError: the JSON object must be str, bytes or bytearray, not TextIOWrapper

daje 2022. 9. 22. 12:06
728x90
반응형

안녕하십니까 다제입니다. 

 

오늘의 에러를 정리하기 위해 포스팅 하였습니다. 

 

TypeError: the JSON object must be str, bytes or bytearray, not TextIOWrapper

위와 같은 TypeError: the JSON object must be str, bytes or bytearray, not TextIOWrapper 에러가 발생하게 될때가 있는데

저는 json을 불러오는 과정에서 에러가 발생하였습니다. 

 

json.loads -> json.load로 불러오면 에러를 해결할 수 있습니다. 

 

간단한 내용이라서 길게 적지 않도록 하겠습니다. 

감사합니다. 

728x90
반응형
Comments