rafaelmaeuer
11/23/2017 - 1:19 PM

How to dynamically build a JSON object with Python?

data = {}
data['key'] = 'value'
json_data = json.dumps(data)