Script description string to dictionary?

I’m reading a ToDo list that contains a dictionary in the description entry, how do I in script convert the string to a useable dictionary and conversely back to a string in another script.

Effectively I’m using the ToDo list as a keyed store with a data block attached, I just need to decipher the data block.

Update: Issue resolved… simply implement dict() around string.