This probably has a simple answer, but I must not have had enough coffee to figure it out on my own:
If I had a comma delimited string such as:
string li
If you are using JSON, following function would help
var string[] keys = list.Split(','); console.log(JSON.stringify(keys));