I have a variable which holds the table name and columns as a string. Below is the sample:
[(u'USER_SSO_PROPERTIES', u'[\n "FULL_NAME",\n "NAME"\n]'), (u'USERS', u'[\n "EMAIL",\n "NAME"\n]'), (u'PITCH_RECIPIENTS', u'[\n "EMAIL",\n "ID"\n]'), (u'USER_CLOUD_SERVICES', u'[\n "EMAIL"\n]')] I am trying to convert into a dictionary in python as below.
{'USER_SSO_PROPERTIES': ['FULL_NAME','NAME'], 'PITCH_RECIPIENTS':['USER_CLOUD_SERVICES','EMAIL']} How can I remove the \n and u and also convert it into the above format. I searched on SO and those solutions did not work for me.