encodeJson

inline fun <T> T.encodeJson(jsonInstance: Json? = null): String

Encode the type T into a Json string

Return

the encoded json string from given type T

Parameters

jsonInstance

the custom json object used to decode the specified string