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

Method toJSON

core/src/processing/data/LongDict.java:789–795  ·  view source on GitHub ↗

Return this dictionary as a String in JSON format.

()

Source from the content-addressed store, hash-verified

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

Callers 1

toStringMethod · 0.95

Calls 3

appendMethod · 0.95
quoteMethod · 0.95
joinMethod · 0.95

Tested by

no test coverage detected