toJson

abstract fun toJson(value: T): Json

Maps value of type T to Json representation.