예제 #1
0
파일: item.py 프로젝트: jorshua/ShowTime
 def save_as_json(nodes, path):
     """Save list of nodes to file as json"""
     json_object = json.dumps(a.__dict__, 
         sort_keys=True, indent=4, separators=(',',': '))
     Download.save_content(json_object, path)