I'm receiving a message that is a list of lists but is recognized as a string in Python. I can't figure out how to get Python to interpret the string as a list of lists, is there a simple way to do this? An example of the format I'm dealing with is shown below:
>>soc = '[["hello","world"],["foo","bar"]]'
>>type(soc)
<type 'str'>
I want to convert this string into an unaltered list of lists:
>>soc
[["hello","world"],["foo","bar"]]
>>type(soc)
<type 'list'>
I'd appreciate any help offered, thanks!