Interface Json

    • Method Detail

      • toString

        String toString​(int indentFactor,
                        int indent)
        Make a pretty-printed JSON text of this JSONObject.

        Warning: This method assumes that the data structure is acyclical.

        Parameters:
        indentFactor - The number of spaces to add to each level of indentation.
        indent - The indentation of the top level.
        Returns:
        a printable, displayable, transmittable representation of the object, beginning with { (left brace) and ending with } (right brace).