I have a field in database of type longtext
with a value like
[{"A":"apple"}, {"B":"ball"} , {"c":"cat"}]
i.e a list of dictionaries. So now
I am fetching that from SQL database using cursor.fetchone()
which returns a tuple with first element as my fetched field. so i extracted it by doing (data,) = cursor.fetchone()
but the problem is that now data returns a string while i need it to be a list of dictionaries as earlier. Please suggest some way through which i can get the value of my field from database as list of dictionaries