processRequestUnsafely

fun processRequestUnsafely(request: JSONObject, processor: Any): Any?

Processes a request to invoke a function on the given processor object.

Return

A function's return value.

Parameters

request

A JSONObject containing the function name and arguments. - functionName: The name of the function to invoke (String). - functionArgs: The arguments for the function (JSONObject).

processor

The object containing the functions to be invoked.

Throws

If the functionName key is missing or invalid.

If the functionArgs key is missing or invalid.

If no matching function is found.