File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -666,7 +666,7 @@ public void write(PrintWriter writer) {
666666 public String toJSON () {
667667 StringList items = new StringList ();
668668 for (int i = 0 ; i < size (); i ++) {
669- items .append ("\" " + keys [i ] + "\" : " + values [i ]);
669+ items .append ("\" " + JSONObject . quote ( keys [i ]) + "\" : " + values [i ]);
670670 }
671671 return "{ " + items .join (", " ) + " }" ;
672672 }
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ X some Table cleanup based on other CSV parsing work
33X use StandardCharsets.UTF_8 instead of getting encoding by name
44X PApplet.main(Blah.class) now works
55X add toJSON() method to IntDict
6+ X had to use JSONObject.quote() to wrap the text
67_ do the same for the other data classes
78_ note the difference between this and toJSONObject() or toJSONArray()
89_ or is that the better way to handle it? hm
You can’t perform that action at this time.
0 commit comments