WebBrowser::InvokeJSONRPC (open)
Executes a JSON RPC call
Syntax
LOADLIB "wh::internet/webbrowser.whlib";
RECORD FUNCTION InvokeJSONRPC(STRING url, STRING methodname, VARIANT ARRAY args2, RECORD options)Parameters
STRING urlService URL
STRING methodnameName of the method to call
VARIANT ARRAY args2Arguments
RECORD optionsOptions
originValue for the origin header
versionJSON RPC value to use. '1.0' or '2.0', defaults to '1.0'
Return value
RECORDReturns information about the request result, DEFAULT RECORD if non-JSON data was returned
BOOLEAN haveresultTRUE if the request returned a result
resultResult value (JSON-decoded)
BOOLEAN successTRUE if the request returned a result