encodeResultToStringUnsafe

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

This method casts the given result to the expected TResult type and uses the resultSerializer to encode it into a string. Use with caution, as it bypasses type safety and may throw runtime exceptions if the cast fails.

Return

A JSON string representation of the provided result.

Parameters

result

The result object of type Tool.Result to be encoded.