I pulling a lot of data from an API. When I parse out the response I get something like:
col1 col2
name1 val1
name2 val2
.....
I would like to output the response as a json file structured like this:
[
{record},
{record},
{record},
....
]
and each record is a dictionary formatted like this:
{'name1':val1,'name2':val2, 'name3': val3,.....}
where val could be a string, list, number, null, or dictionary
Any help with this would be appreciated