You can look at JsonReader#setStrictness(Strictness) to see how the strictness affects
the JsonReader and you can look at JsonWriter#setStrictness(Strictness) to see
how the strictness affects the JsonWriter.
GsonBuilder#setStrictness(Strictness), JsonReader#setStrictness(Strictness), JsonWriter#setStrictness(Strictness)
| Modifier and Type | Field and Description |
|---|---|
| public static final Strictness | LEGACY_STRICT
Allow certain small deviations from the JSON specification for legacy reasons. |
| public static final Strictness | LENIENT
Allow large deviations from the JSON specification. |
| public static final Strictness | STRICT
Strict compliance with the JSON specification. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Strictness | |
| public static Strictness[] |
| LEGACY_STRICT | back to summary |
|---|---|
| public static final Strictness LEGACY_STRICT Allow certain small deviations from the JSON specification for legacy reasons. | |
| LENIENT | back to summary |
|---|---|
| public static final Strictness LENIENT Allow large deviations from the JSON specification. | |
| STRICT | back to summary |
|---|---|
| public static final Strictness STRICT Strict compliance with the JSON specification. | |
| Strictness | back to summary |
|---|---|
| private Strictness() | |
| valueOf | back to summary |
|---|---|
| public static Strictness valueOf(String name) | |
| values | back to summary |
|---|---|
| public static Strictness[] values() | |