I have list like string retuned from AJAX post request:
["{'id': '1',  'name': 'John'}","{'id': '2',  'name': 'Paul'}"] 
I have used ast.literal_eval() but raises exception:
 raise ValueError('malformed node or string: ' + repr(node))
> 
> ls_j = request.form['journal_to_match']\
 ls_j= ast.literal_eval(ls_j)
What is the best way to convert to list of dictionary?
 
     
     
     
     
    