I have these unicodes:
uni_list = u'["","aa","bb","cc"]
I also have the following unicodes:
uni_str = u'dd'
I need to combine them together to a list, and get rid of null ones, the desired result will be like:
["aa","bb","cc","dd"]
But I don't know when it will be a uni_list, or a uni_str as i am reading a json file which split these results, is there a unified solution to convert them and combine them to a python list or set?
I tried to use ast.literal_eval, it seems only handle uni_list, but give me error of "malformed string" when it is a uni_str.
Many Thanks!

u'["","aa","bb","cc"]is neither a valid unicode string nor a valid list.