I have a string like
res_string= '[\n "admin_name",\n "admin_pass",\n "https://google.com",\n "managed_acc_id"\n]'
Now I want to convert this into a list(say res_list
) such that I can retrieve admin_name, admin_pass, etc as an index.
I.e.
res_list[0]='admin_name'
res_list[1]='admin_pass'
res_list[2]='https://google.com'
res_list[3]='managed_acc_id'
One way to achieve this is to use split/replace logic.
What will the best way to accomplish this?