function ToJSON(Table) { if(typeof(Table)!="array" && typeof(Table)!="table") return Table.tostring(); local Out = ""; function AsString(Item) { switch(typeof(Item)) { case "table": case "array": return ToJSON(Item); case "string": local Len = Item.len(); local Str = ""; for(local i=0;i