From 4b6f16fac03a2a53d273db16765302214c56a77f Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Tue, 30 Aug 2016 09:29:47 -0400 Subject: [PATCH] fix quoting problem in IntDict.toJSON() --- core/src/processing/data/IntDict.java | 2 +- core/todo.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/processing/data/IntDict.java b/core/src/processing/data/IntDict.java index 965fedb4d..e50d1b55d 100644 --- a/core/src/processing/data/IntDict.java +++ b/core/src/processing/data/IntDict.java @@ -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(", ") + " }"; } diff --git a/core/todo.txt b/core/todo.txt index c37d20d1b..96c666f60 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -1,7 +1,11 @@ 0254 (3.2.2 or 3.3) +X fix quoting problem in IntDict.toJSON() X add getRowMap() function _ do we want rows() to not be transient? +andres +X Automatic handling of screen FBOs breaks readPixels() for user-provided FBO +X https://github.com/processing/processing/issues/4643 started X add toJSON() method to IntDict