A JSONWriter dedicated to create indented/pretty printed output.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
DEFAULT_INDENT_STR |
|
static java.lang.String |
NEWLINE |
Fields inherited from class | Fields |
---|---|
class JSONWriter |
comma, mode, writer |
Constructor and description |
---|
PrettyPrintJSONWriter
(java.io.Writer w) |
PrettyPrintJSONWriter
(java.io.Writer w, java.lang.String indentStr) |
Type | Name and description |
---|---|
protected JSONWriter |
append(groovy.lang.Writable writableValue) |
JSONWriter |
array() |
protected JSONWriter |
end(Mode m, char c) |
JSONWriter |
endArray() |
JSONWriter |
endObject() |
JSONWriter |
key(java.lang.String s) |
JSONWriter |
object() |
Methods inherited from class | Name |
---|---|
class JSONWriter |
append, append, array, comma, end, endArray, endObject, key, object, pop, push, value, value, value, value, value, valueNull |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |