fix quoting problem in IntDict.toJSON()

This commit is contained in:
Ben Fry
2016-08-30 09:29:47 -04:00
parent decf462b1b
commit 4b6f16fac0
2 changed files with 5 additions and 1 deletions

View File

@@ -666,7 +666,7 @@ public class IntDict {
public String toJSON() {
StringList items = new StringList();
for (int i = 0; i < size(); i++) {
items.append("\"" + JSONObject.quote(keys[i]) + "\": " + values[i]);
items.append(JSONObject.quote(keys[i])+ ": " + values[i]);
}
return "{ " + items.join(", ") + " }";
}