public class JsonParserConfiguration extends Object
Constructor and Description |
---|
JsonParserConfiguration()
Constructs a new JsonParserConfiguration
|
Modifier and Type | Method and Description |
---|---|
int |
getIndentation()
Returns the number of spaces to indent when pretty is enabled.
|
String |
getLineSeparator()
Returns the line separator to use when pretty is enabled.
|
boolean |
isPretty()
Returns whether JSON output should be formatted prettily.
|
void |
setIndentation(int indentation)
Sets the number of spaces to indent when pretty is enabled.
|
void |
setLineSeparator(String lineSeparator)
Sets the line separator to use when pretty is enabled.
|
void |
setPretty(boolean pretty)
Sets whether to prettily format JSON output.
|
public JsonParserConfiguration()
public boolean isPretty()
public void setPretty(boolean pretty)
pretty
- true to format JSON output, false otherwisepublic int getIndentation()
public void setIndentation(int indentation)
indentation
- the number of spacespublic String getLineSeparator()
public void setLineSeparator(String lineSeparator)
lineSeparator
- the line separator