JSON
https://pynative.com/python-json-exercise/
Json 표준에는 겹따옴표가 표준이고 홑따옴표가 비표준이라는 것
vsCode에서 JSON파일
vscode ~ new file ~ select language : json
~ Shift+Option(alt)+ F ==> json 예쁘게 보기
dictionary -> json 문자열 :: json.dump()
json.dump() vs. json.dumps()
dump() 함수: Python객체를 JSON “파일”에 저장하기
dumps() 함수: Python객체를 JSON “문자열”로 변환
https://www.delftstack.com/ko/howto/python-pandas/json-to-pandas-dataframe/
더블쿼테이션이 표준
json문자열 -> dictionary :: json.load()
json.load() vs. json.loads()
load() 함수: JSON “파일”을 Python객체로 불러오기
loads() 함수: JSON “문자열”을 Python객체로 변환
json.load()
To parse JSON from URL or file
fp: file pointer used to read a file,
json.loads()
For parse string with JSON content
into (python)Dictionary
file pointer used to read a text file,

에러
AttributeError: ‘str’ object has no attribute ‘loads’
=> json.load()와 json.loads()를 구별못했거나, json이름을 변수로 사용한 경우