티스토리 뷰

import json

# arr : [{}, {}, {}, ...]
set_of_jsons = {json.dumps(d) for d in arr}
arr = [json.loads(d) for d in set_of_jsons]

 

 

참고: https://kangprog.tistory.com/13

반응형

댓글