Currently I\'m doing this:
def getJSONString(lst): join = \"\" rs = \"{\" for i in lst: rs += join + \'\"\' + str(i[0]) + \'\":\"\' + str
I think this is a much simple solution. Courtesy w3 schools https://www.w3schools.com/python/python_json.asp
import json
some JSON:
x = '{ "name":"John", "age":30, "city":"New York"}'
parse x:
y = json.loads(x)
the result is a Python dictionary:
print(y["age"])