encodeResultUnsafe

fun encodeResultUnsafe(result: Any?, serializer: JSONSerializer): JSONElement(source)

Encodes the given result object into a JSON representation without type safety checks.

Throws

If the provided result cannot be cast to the expected type TResult.