public class PrettyPrintJSONWriter extends JSONWriter
A JSONWriter dedicated to create indented/pretty printed output.
Modifiers | Name | Description |
---|---|---|
static String |
DEFAULT_INDENT_STR |
|
static String |
NEWLINE |
Fields inherited from class | Fields |
---|---|
class JSONWriter |
comma, mode, writer |
Constructor and description |
---|
PrettyPrintJSONWriter(Writer w) |
PrettyPrintJSONWriter(Writer w, String indentStr) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected JSONWriter |
append(Writable writableValue) |
|
public JSONWriter |
array() |
|
protected JSONWriter |
end(JSONWriter.Mode m, char c) |
|
public JSONWriter |
endArray() |
|
public JSONWriter |
endObject() |
|
public JSONWriter |
key(String s) |
|
public JSONWriter |
object() |