Initializer
Printer(Boolean pretty = false)
Parameters:
  • pretty = false
Inherited Attributes
Attributes inherited from: Object
Methods
printSource Codeshared formal void print(String string)

Override to implement the printing part

printArraySource Codeshared default void printArray(Array o)

Prints an Array

printBooleanSource Codeshared default void printBoolean(Boolean v)

Prints a Boolean

printNullSource Codeshared default void printNull()

Prints null

printNumberSource Codeshared default void printNumber(Integer|Float n)

Prints an Integer|Float

printObjectSource Codeshared default void printObject(Object o)

Prints an Object

printStringSource Codeshared default void printString(String s)

Prints a String

printValueSource Codeshared default void printValue(Value val)

Prints a JSON value

Inherited Methods
Methods inherited from: Object