MCPcopy Index your code
hub / github.com/processing/processing / toJSON

Method toJSON

core/src/processing/data/StringDict.java:600–606  ·  view source on GitHub ↗

Return this dictionary as a String in JSON format.

()

Source from the content-addressed store, hash-verified

598 * Return this dictionary as a String in JSON format.
599 */
600 public String toJSON() {
601 StringList items = new StringList();
602 for (int i = 0; i < count; i++) {
603 items.append(JSONObject.quote(keys[i])+ ": " + JSONObject.quote(values[i]));
604 }
605 return "{ " + items.join(", ") + " }";
606 }
607
608
609 @Override

Callers 1

toStringMethod · 0.95

Calls 3

appendMethod · 0.95
quoteMethod · 0.95
joinMethod · 0.95

Tested by

no test coverage detected