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)
| 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 |
no test coverage detected