mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
properly put escapes on strings
This commit is contained in:
@@ -666,7 +666,7 @@ public class IntDict {
|
||||
public String toJSON() {
|
||||
StringList items = new StringList();
|
||||
for (int i = 0; i < size(); i++) {
|
||||
items.append("\"" + keys[i] + "\": " + values[i]);
|
||||
items.append("\"" + JSONObject.quote(keys[i]) + "\": " + values[i]);
|
||||
}
|
||||
return "{ " + items.join(", ") + " }";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user