public class DefaultGsonService extends Object implements GsonService
Constructor and Description |
---|
DefaultGsonService() |
Modifier and Type | Method and Description |
---|---|
com.google.gson.Gson |
getGson() |
com.google.gson.Gson |
getGsonNoSerializeNulls() |
com.google.gson.Gson |
getGsonPrettyPrinting() |
public com.google.gson.Gson getGson()
getGson
in interface GsonService
public com.google.gson.Gson getGsonPrettyPrinting()
getGsonPrettyPrinting
in interface GsonService
GsonService.getGson()
, but with pretty-printing turned on. Useful for logging.public com.google.gson.Gson getGsonNoSerializeNulls()
getGsonNoSerializeNulls
in interface GsonService
GsonService.getGson()
, but with null serialization turned off.Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved