Class GsonProperties
java.lang.Object
org.springframework.boot.autoconfigure.gson.GsonProperties
Configuration properties to configure
Gson
.- Since:
- 2.0.0
- Author:
- Ivan Golovko
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.FieldNamingPolicy
com.google.gson.LongSerializationPolicy
void
setDateFormat
(String dateFormat) void
setDisableHtmlEscaping
(Boolean disableHtmlEscaping) void
setDisableInnerClassSerialization
(Boolean disableInnerClassSerialization) void
setEnableComplexMapKeySerialization
(Boolean enableComplexMapKeySerialization) void
setExcludeFieldsWithoutExposeAnnotation
(Boolean excludeFieldsWithoutExposeAnnotation) void
setFieldNamingPolicy
(com.google.gson.FieldNamingPolicy fieldNamingPolicy) void
setGenerateNonExecutableJson
(Boolean generateNonExecutableJson) void
setLenient
(Boolean lenient) void
setLongSerializationPolicy
(com.google.gson.LongSerializationPolicy longSerializationPolicy) void
setPrettyPrinting
(Boolean prettyPrinting) void
setSerializeNulls
(Boolean serializeNulls)
-
Constructor Details
-
GsonProperties
public GsonProperties()
-
-
Method Details
-
getGenerateNonExecutableJson
-
setGenerateNonExecutableJson
-
getExcludeFieldsWithoutExposeAnnotation
-
setExcludeFieldsWithoutExposeAnnotation
-
getSerializeNulls
-
setSerializeNulls
-
getEnableComplexMapKeySerialization
-
setEnableComplexMapKeySerialization
-
getDisableInnerClassSerialization
-
setDisableInnerClassSerialization
-
getLongSerializationPolicy
public com.google.gson.LongSerializationPolicy getLongSerializationPolicy() -
setLongSerializationPolicy
public void setLongSerializationPolicy(com.google.gson.LongSerializationPolicy longSerializationPolicy) -
getFieldNamingPolicy
public com.google.gson.FieldNamingPolicy getFieldNamingPolicy() -
setFieldNamingPolicy
public void setFieldNamingPolicy(com.google.gson.FieldNamingPolicy fieldNamingPolicy) -
getPrettyPrinting
-
setPrettyPrinting
-
getLenient
-
setLenient
-
getDisableHtmlEscaping
-
setDisableHtmlEscaping
-
getDateFormat
-
setDateFormat
-