Thread
#serialization
    g

    ghedeon

    3 years ago
    This prints {"bar":"lorem"}:
    @Serializable
    	data class Foo(@Transient val bar: String)
    	
    	println(Json.stringify(Foo.serializer(), Foo("lorem")))
    Do I miss anything about
    @Transient
    ?
    s

    sandwwraith

    3 years ago
    Probably you've imported kotlin.jvm.transient instead of kotlinx.serialization.Transient
    g

    ghedeon

    3 years ago
    that's correct, thank you. The other one is available globally, so there was no prompt for the import selection 😏