encodeResult
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.
Encodes the given result into a JSON representation.
The result object of type TResult to be encoded.
The JSON serializer to use.