* 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 with {
(left
* brace) and ending with }
(right
* brace).
* @throws JSONException If the object contains an invalid number.
*/
String toString( int indentFactor );
/**
* Make a prettyprinted JSON text.
*
* Warning: This method assumes that the data structure is acyclical.
*
* @param indentFactor The number of spaces to add to each level of
* indentation.
* @param indent The indentation of the top level.
* @return a printable, displayable, transmittable representation of the
* object, beginning with {
(left brace)
* and ending with }
(right brace).
* @throws JSONException If the object contains an invalid number.
*/
String toString( int indentFactor, int indent );
/**
* Write the contents as JSON text to a writer. For compactness, no
* whitespace is added.
*
* Warning: This method assumes that the data structure is acyclical. * * @return The writer. * @throws JSONException */ Writer write( Writer writer ); }