In the end I had to do: ```inline fun <reified ...
# klaxon
d
In the end I had to do:
Copy code
inline fun <reified T: Any> Any.toJsonString() =
		klaxon.toJsonString(this as T)
And specify the reified type when calling... (even though I was expecting Kotlin to infer it from the surroundings...