serialize

val serialize: (T) -> String

Encode an object of type T to a JSON String.