SyntaxFix
Write A Post
Hire A Developer
Questions
You probably don't even need string substitution for that. If your original string is JSON, try:
js> a="['abc','xyz']" ['abc','xyz'] js> eval(a).join(",") abc,xyz
Be careful with eval, of course.
eval