blob: 38b72e794acb09d1ae3d66101f605a91bf923039 [file] [log] [blame]
// This file was automatically generated from serializers.md by Knit tool. Do not edit.
package example.exampleSerializer20
import kotlinx.serialization.*
import kotlinx.serialization.json.*
import kotlinx.serialization.encoding.*
import kotlinx.serialization.descriptors.*
import java.util.Date
import java.text.SimpleDateFormat
@Serializable
class ProgrammingLanguage(
val name: String,
@Contextual
val stableReleaseDate: Date
)
fun main() {
val data = ProgrammingLanguage("Kotlin", SimpleDateFormat("yyyy-MM-ddX").parse("2016-02-15+00"))
println(Json.encodeToString(data))
}