I\'m using the tag-it library for jquery to make a tagging system (a bit like the stackoverflow one).
After the user types his tags the library returns a javascript arra
How about just JSONing it?
var arr = [1,2,3]; var arrSerialized = JSON.stringify(arr); ... var arrExtracted = JSON.parse(arrSerialized);
By the way, JSON is often used for serializing in some other languages, even though they have their own serializing functions. )