public final class GsonSingleton
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static com.google.gson.TypeAdapter<java.lang.Number> |
LAZILY_PARSED_NUMBER_ADAPTER |
Modifier and Type | Method and Description |
---|---|
static com.google.gson.Gson |
getGson()
Gets the Gson instance.
|
static com.google.gson.Gson |
getGsonWithoutPrettyPrinting()
Gets the Gson instance.
|
static com.google.gson.Gson |
getGsonWithSerializeNulls()
Returns an instance of Gson with the "serialize nulls" config option enabled.
|
public static final com.google.gson.TypeAdapter<java.lang.Number> LAZILY_PARSED_NUMBER_ADAPTER
public static com.google.gson.Gson getGson()
public static com.google.gson.Gson getGsonWithoutPrettyPrinting()
public static com.google.gson.Gson getGsonWithSerializeNulls()
Copyright © 2022 IBM Cloud Developer Experience. All rights reserved.