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 url

Service URL

STRING methodname

Name of the method to call

VARIANT ARRAY args2

Arguments

RECORD options

Options

origin

Value for the origin header

version

JSON RPC value to use. '1.0' or '2.0', defaults to '1.0'

Return value

RECORD

Returns information about the request result, DEFAULT RECORD if non-JSON data was returned

BOOLEAN haveresult

TRUE if the request returned a result

result

Result value (JSON-decoded)

BOOLEAN success

TRUE if the request returned a result