So in Kotlin say something like, `type class JsonW...
# announcements
s
So in Kotlin say something like,
type class JsonWriter<T> { fun toJson(t:T) :JsonObject }
and then you can implement it for a type T by
type object PersonJsonWriter : JsonWriter<Person>  { ... }