콘솔워크

python dictionary to json 본문

프로그래밍/python

python dictionary to json

콘솔워크 2022. 6. 14. 10:19
반응형

Dictionary to Json (in Python)

json_val = json.dumps(dict1)

 

Json to Dictionary (in Python)

dict2 = json.loads(json_val)

 

Json to Str (in Python)

json_str = json.dumps(json_val)

 

반응형