public class JsonGrammar
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonGrammar.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
comments |
static JsonGrammar |
JANKSON
A grammar which will accept all supported quirks, and output JSON-with-comments, which is a
valid jankson subset.
|
static JsonGrammar |
JSON5
A grammar which will accept JSON5 and output JSON-with-comments with trailing commas.
|
protected boolean |
printCommas |
protected boolean |
printTrailingCommas |
protected boolean |
printWhitespace |
static JsonGrammar |
STRICT
A grammar which will only accept or output strict JSON.
|
| Constructor and Description |
|---|
JsonGrammar() |
| Modifier and Type | Method and Description |
|---|---|
static JsonGrammar.Builder |
builder() |
boolean |
hasComments() |
boolean |
shouldOutputWhitespace() |
public static final JsonGrammar JANKSON
public static final JsonGrammar JSON5
public static final JsonGrammar STRICT
protected boolean comments
protected boolean printWhitespace
protected boolean printCommas
protected boolean printTrailingCommas
public boolean hasComments()
public boolean shouldOutputWhitespace()
public static JsonGrammar.Builder builder()