[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. [Lars H], 2008-02-06: Do you have an example of what the data format looks like? Also, what is the point of doing a more Tclish format in this case? I'd expect it to be easier to teach Tcl to parse a data structure with Javascript syntax than vice versa, but on the other hand it is probably good for the mountain to come to Muhammed every once in a while too. ---- '''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