Class KotlinSerializationProperties
java.lang.Object
org.springframework.boot.kotlin.serialization.autoconfigure.KotlinSerializationProperties
@ConfigurationProperties("spring.kotlin.serialization")
public class KotlinSerializationProperties
extends Object
Configuration properties to configure Kotlin Serialization
Json
.- Since:
- 4.0.0
- Author:
- Dmitry Sulman
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enum representing strategies for JSON property naming. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable String
@Nullable kotlinx.serialization.json.ClassDiscriminatorMode
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
void
setAllowComments
(@Nullable Boolean allowComments) void
setAllowSpecialFloatingPointValues
(@Nullable Boolean allowSpecialFloatingPointValues) void
setAllowStructuredMapKeys
(@Nullable Boolean allowStructuredMapKeys) void
setAllowTrailingComma
(@Nullable Boolean allowTrailingComma) void
setClassDiscriminator
(@Nullable String classDiscriminator) void
setClassDiscriminatorMode
(@Nullable kotlinx.serialization.json.ClassDiscriminatorMode classDiscriminatorMode) void
setCoerceInputValues
(@Nullable Boolean coerceInputValues) void
setDecodeEnumsCaseInsensitive
(@Nullable Boolean decodeEnumsCaseInsensitive) void
setEncodeDefaults
(@Nullable Boolean encodeDefaults) void
setExplicitNulls
(@Nullable Boolean explicitNulls) void
setIgnoreUnknownKeys
(@Nullable Boolean ignoreUnknownKeys) void
setLenient
(@Nullable Boolean lenient) void
setNamingStrategy
(@Nullable KotlinSerializationProperties.JsonNamingStrategy namingStrategy) void
setPrettyPrint
(@Nullable Boolean prettyPrint) void
setUseAlternativeNames
(@Nullable Boolean useAlternativeNames)
-
Constructor Details
-
KotlinSerializationProperties
public KotlinSerializationProperties()
-
-
Method Details
-
getNamingStrategy
-
setNamingStrategy
public void setNamingStrategy(@Nullable KotlinSerializationProperties.JsonNamingStrategy namingStrategy) -
getPrettyPrint
-
setPrettyPrint
-
getLenient
-
setLenient
-
getIgnoreUnknownKeys
-
setIgnoreUnknownKeys
-
getEncodeDefaults
-
setEncodeDefaults
-
getExplicitNulls
-
setExplicitNulls
-
getCoerceInputValues
-
setCoerceInputValues
-
getAllowStructuredMapKeys
-
setAllowStructuredMapKeys
-
getAllowSpecialFloatingPointValues
-
setAllowSpecialFloatingPointValues
-
getClassDiscriminator
-
setClassDiscriminator
-
getClassDiscriminatorMode
public @Nullable kotlinx.serialization.json.ClassDiscriminatorMode getClassDiscriminatorMode() -
setClassDiscriminatorMode
public void setClassDiscriminatorMode(@Nullable kotlinx.serialization.json.ClassDiscriminatorMode classDiscriminatorMode) -
getDecodeEnumsCaseInsensitive
-
setDecodeEnumsCaseInsensitive
-
getUseAlternativeNames
-
setUseAlternativeNames
-
getAllowTrailingComma
-
setAllowTrailingComma
-
getAllowComments
-
setAllowComments
-