Skip to content

Glossary: Kotlin Beyond the Basics

@Serializable

Also written: @SerialName, SerializationException

`@Serializable` tells the plugin to generate JSON code for a class. `@SerialName` maps a differently named key, and bad input throws `SerializationException`.

Where the book teaches it

Related terms

serializationcompiler plugin