Run
import json aList = [{'a':1, 'b':2}, {'c':3, 'd':4}] jsonStr = json.dumps(aList) print(jsonStr)
Output