Python 3 json load from file 한글 오류

python3에서 한글이 들어간 json파일을 읽을 때 아래와 같이 에러가 남

UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xea in position 57: ordinal not in range(128)

python2도 아닌데 왜 그런가 생각하다가 발견

아래처럼 인코딩을 붙여주면 됨

with open('kpi.json', encoding="utf8") as data: