다음과 같은 매우 기본적인 코드가 있습니다. TypeError: the JSON object must be str, not 'bytes'
import requests
import json
url = 'my url'
user = 'my user'
pwd = 'my password'
response = requests.get(url, auth=(user, pwd))
if(myResponse.ok):
Data = json.loads(myResponse.content)
다음과 같이 Decode를 Data 변수에 설정하려고하지만 동일한 오류가 발생합니다. jData = json.loads(myResponse.content).decode('utf-8')
어떤 제안?