forked from google/gson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Strictness.java
18 lines (17 loc) · 856 Bytes
/
Strictness.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.google.gson;
/**
* Modes that indicate how strictly a JSON {@linkplain com.google.gson.stream.JsonReader reader} or
* {@linkplain com.google.gson.stream.JsonWriter writer} follows the syntax laid out in the
* <a href="http://www.ietf.org/rfc/rfc4627.txt">RFC 4627 JSON Specification</a>.
* You can look at {@link com.google.gson.stream.JsonWriter#setStrictness(Strictness)} to see how the strictness
* affects the {@link com.google.gson.stream.JsonWriter} and you can look at
* {@link com.google.gson.stream.JsonReader#setStrictness(Strictness)} to see how the strictness
* affects the {@link com.google.gson.stream.JsonReader} and
* @see com.google.gson.stream.JsonReader#setStrictness(Strictness)
* @see com.google.gson.stream.JsonWriter#setStrictness(Strictness)
*/
public enum Strictness {
LENIENT,
DEFAULT,
STRICT
}