public class GsonFactory
extends java.lang.Object
Constructor and Description |
---|
GsonFactory() |
Modifier and Type | Method and Description |
---|---|
static com.google.gson.Gson |
getDebugGson(boolean exposeAll)
Create a new Gson instance with PrettyPrinting.
|
static com.google.gson.Gson |
getNormalGson()
Create a new Gson instance with excludeFieldsWithoutExposeAnnotation().
|
public static com.google.gson.Gson getNormalGson()
public static com.google.gson.Gson getDebugGson(boolean exposeAll)
exposeAll
- - TRUE to create without excludeFieldsWithoutExposeAnnotation().