encodeResult

open fun encodeResult(result: TResult, serializer: JSONSerializer): JSONElement(source)

Encodes the given result into a JSON representation.

Parameters

result

The result object of type TResult to be encoded.

serializer

The JSON serializer to use.