I have a string of a list of tuples and lists, like so:
"['S', [('I', 'PRP'), (',', ','), ('PERSON', [('Vladamir', 'NNP'), ('Putin', 'NNP')]), (',', ','), ('have', 'VBP'), ('never', 'RB'), ('been', 'VBN'), ('more', 'RBR'), ('frustrated', 'JJ'), ('in', 'IN'), ('my', 'PRP$'), ('life', 'NN'), ('.', '.')]]"
It deals with natural language processing, you can see that each word is given it's corresponding part of speech, and words are also grouped into smaller lists (in this case, "Vladamir Putin").
This value is being returned to me as a string, but I need to turn it back into a list somehow because my goal is converting it into JSON format. I've already tried using the JSON library, the ast library, and turning into a numpy array but JSON and ast return errors while numpy makes a 0 dimensional array (the only element of the array is the string containing the entire list).
Any hints or code-snippets are highly appreciated.