[Sarnold]: An attempt to produce a Tcl-equivalent to [JSON], a data format easily parsable by Web applications. Here we have a simple code to handle this format at Tcl-level, with a little sugar to handle types, that is required by the [Javascript] version. ---- '''Javascript code:''' ====== var tclon = new Object(); tclon.tclon=function (input, types) { return tclon._tclon(tclon.parse(input), tclon.parse(types)); } tclon._tclon = function (input, types) { if (types.length == 0 || (types.length==1 && types[0]=="*")) return input; var res=new Array(), i; for (i=0; i