public interface JSONComponent
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString()
Make a JSON text of this JSONObject.
|
java.lang.String |
toString(int indentFactor)
Make a prettyprinted JSON text of this JSONObject.
|
java.lang.String |
toString(int indentFactor,
int indent)
Make a prettyprinted JSON text of this JSONObject.
|
java.lang.Appendable |
write(java.lang.Appendable writer)
Write the contents of the JSONComponent as JSON text to a writer.
|
java.lang.String toString()
Warning: This method assumes that the data structure is acyclical.
toString in class java.lang.Object{ (left brace) and ending with
} (right brace).java.lang.String toString(int indentFactor)
Warning: This method assumes that the data structure is acyclical.
indentFactor - The number of spaces to add to each level of indentation.{ (left brace) and ending with
} (right brace).java.lang.String toString(int indentFactor,
int indent)
Warning: This method assumes that the data structure is acyclical.
indentFactor - The number of spaces to add to each level of indentation.indent - The indentation of the top level.{ (left brace) and ending with }
(right brace).java.lang.RuntimeException - If the object contains an invalid number.java.lang.Appendable write(java.lang.Appendable writer)
throws java.io.IOException
Warning: This method assumes that the data structure is acyclical.
java.io.IOException