This prints `{"bar":"lorem"}`: ``` @Serializable ...
# serialization
g
This prints `{"bar":"lorem"}`:
Copy code
@Serializable
	data class Foo(@Transient val bar: String)
	
	println(Json.stringify(Foo.serializer(), Foo("lorem")))
Do I miss anything about
@Transient
?
s
Probably you've imported kotlin.jvm.transient instead of kotlinx.serialization.Transient
👍 1
g
that's correct, thank you. The other one is available globally, so there was no prompt for the import selection 😏