0

I have some data as string which contains list of list of data.

data = "[['asdaddas','asdasdasd'],['asdawdasd','asdwdefe']]"

As you can see that this is nested list in string not of type(list()).

I have tried manually using online-json-formatter and copying data from the result and pasting it for assigning it to some variable. like:

data = [['asdaddas','asdasdasd'],['asdawdasd','asdwdefe']]

but here is the issue that this is not how i will be doing it on all iterations. There should be some code to convert it from above mention string type data to list type data.

I hope you guys can help me!

Thanks in advance.

0 Answers0