Adding elements to Table Column Defs

I haven’t had time to work on it. I think the answer is either to do this (per this post Perspective table editing help)

import json
json.reads

columnJSON = ‘’
columnSet = []
for i in range(columnCount):
columnSet.append(json.reads(columnJSON % ()))
columnSet[i][‘field’] = ‘Column Name’

myTable.props.columns = columnSet

or maybe to choose the dataset to return as json. I’ve been tied up with other things so haven’t had a moment to try either solution.