Type Hierarchy:
Direct Known Subclasses: StringPrinter

A JSON Printer

By: Stéphane Épardaud
Initializer
Printer(Boolean pretty= false)
Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
printSource Code
shared formal void print(String string)

Override to implement the printing part

printArraySource Code
shared default void printArray(Array o)

Prints an Array

printBooleanSource Code
shared default void printBoolean(Boolean v)

Prints a Boolean

printNullSource Code
shared default void printNull()

Prints null

printNumberSource Code
shared default void printNumber(Number n)

Prints an Integer|Float

printObjectSource Code
shared default void printObject(Object o)

Prints an Object

printStringSource Code
shared default void printString(String s)

Prints a String

printValueSource Code
shared default void printValue(String|Boolean|Integer|Float|Object|Array|NullInstance val)

Prints a JSON value

Inherited Methods
Methods inherited from: Object
equals