MCPcopy Index your code
hub / github.com/benfry/processing4 / toJSON

Method toJSON

core/src/processing/data/FloatDict.java:875–881  ·  view source on GitHub ↗

Return this dictionary as a String in JSON format.

()

Source from the content-addressed store, hash-verified

873 * Return this dictionary as a String in JSON format.
874 */
875 public String toJSON() {
876 StringList items = new StringList();
877 for (int i = 0; i < count; i++) {
878 items.append(JSONObject.quote(keys[i])+ ": " + values[i]);
879 }
880 return "{ " + items.join(", ") + " }";
881 }
882
883
884 @Override

Callers 1

toStringMethod · 0.95

Calls 3

appendMethod · 0.95
quoteMethod · 0.95
joinMethod · 0.95

Tested by

no test coverage detected