public class GsonUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static com.google.gson.Gson |
GSON
The constant GSON which include ISO date time to ZonedDateTime objects
|
static com.google.gson.JsonParser |
JSON_PARSER
The constant JSON_PARSER.
|
| Constructor and Description |
|---|
GsonUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
doesGsonPOJOMatch(java.lang.Class jsonPOJOClass,
com.google.gson.JsonObject jsonObject)
Checks if all Gson
SerializedName annotation values (including inherited ones) in the JSON POJO are
present in the immediate JSON object. |
public static final com.google.gson.Gson GSON
public static final com.google.gson.JsonParser JSON_PARSER
public static boolean doesGsonPOJOMatch(java.lang.Class jsonPOJOClass,
com.google.gson.JsonObject jsonObject)
SerializedName annotation values (including inherited ones) in the JSON POJO are
present in the immediate JSON object.jsonPOJOClass - the json pojo classjsonObject - the json object