abstract fun <T> toJson(type: Class<T>, value: T): String
Converts value to JSON string
type - the convertible type
type
value - the convertible object
value
Return the JSON string