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

Method toJSON

core/src/processing/data/IntDict.java:794–800  ·  view source on GitHub ↗

Return this dictionary as a String in JSON format.

()

Source from the content-addressed store, hash-verified

792 * Return this dictionary as a String in JSON format.
793 */
794 public String toJSON() {
795 StringList items = new StringList();
796 for (int i = 0; i < count; i++) {
797 items.append(JSONObject.quote(keys[i])+ ": " + values[i]);
798 }
799 return "{ " + items.join(", ") + " }";
800 }
801
802
803 @Override

Callers 1

toStringMethod · 0.95

Calls 3

appendMethod · 0.95
quoteMethod · 0.95
joinMethod · 0.95

Tested by

no test coverage detected