List of objects to JSON with Python,json_string = json.dumps([ob.__dict__ for ob in list_name])