What you seem to be doing now is double conversion from list to string and need it back in list format. Instead, use the list of ids (assuming they are a list) and just send that list to the back end.