]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixed JSON bug with array variables
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 7 Jun 2007 12:21:26 +0000 (12:21 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 7 Jun 2007 12:21:26 +0000 (12:21 +0000)
svn changeset:1636/svn branch:trunk

src/com/itmill/toolkit/terminal/web/AjaxJsonPaintTarget.java

index b286aa6e0f964096988867c39541e0b755e0c0c8..0bfc6c5323b6adf5fe852aaa798b1e0164818725 100644 (file)
@@ -925,12 +925,12 @@ public class AjaxJsonPaintTarget implements PaintTarget, AjaxPaintTarget {
                }
 
                public String getJsonPresentation() {
-                       String pres =  "\""+name +"\":[\"";
+                       String pres =  "\""+name +"\":[";
                        for (int i = 0; i < value.length;) {
-                               pres += value[i];
+                               pres += "\"" + value[i] + "\"" ;
                                i++;
                                if(i < value.length)
-                                       pres += "\",";
+                                       pres += ",";
                        }
                        pres += "]";
                        return pres;