File.write(transmd5, '');
for(v in map) {
- File.append(transfile, l + "\n\t \"" + v + '" : "' + v + '"');
+ File.append(transfile, l + "\n\t" + JSON.stringify(v) + " : " + JSON.stringify(v));
l = ',';
// strings are raw... - as the where encoded to start with!!!
- File.append(transmd5, '_T["' + this.md5(ffn + '-' + v) + '"]="'+v+"\";\n");
+ File.append(transmd5, '_T["' + this.md5(ffn + '-' + v) + '"]='+JSON.stringify(v)+";\n");
}
File.append(transfile, "\n},"); // always one trailing..