IT/python
이중중첩 json 포맷에 대한 python 처리 방법
심장과영혼
2023. 2. 11. 17:59
728x90
반응형
이중중첩 json 포맷에 대한 python 처리 방법
import json
:
:
js4 = '{"id": 1, "info": [{"name": "helloalpaca", "email": "w30@gmail.com"}, {"name": "choppermask", "email": "abcde@abcde.com"}]}'
jsonObject = json.loads(js4)
jsonArray = jsonObject.get("info")
for list in jsonArray:
print(list.get("email"))
즐겁게 개발하시기 바랍니다.
728x90
반응형