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

Method format

core/src/processing/data/JSONObject.java:1637–1642  ·  view source on GitHub ↗

Make a prettyprinted JSON text of this JSONObject. Warning: This method assumes that the data structure is acyclical. @param indentFactor The number of spaces to add to each level of indentation. @return a printable, displayable, portable, transmittable representation of the object, beginning

(int indentFactor)

Source from the content-addressed store, hash-verified

1635 * @throws RuntimeException If the object contains an invalid number.
1636 */
1637 public String format(int indentFactor) {
1638 StringWriter w = new StringWriter();
1639 synchronized (w.getBuffer()) {
1640 return this.writeInternal(w, indentFactor, 0).toString();
1641 }
1642 }
1643
1644 /**
1645 * Make a JSON text of an Object value. If the object has an

Callers 2

writeMethod · 0.95
toStringMethod · 0.95

Calls 2

writeInternalMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected