Server Reference Guide : 11. JSON-RPC 2.0 Interface : JSON-RPC Request Named Parameters
 
Share this page                  
JSON-RPC Request Named Parameters
The "params" member within a JSON-RPC request must contain named parameters and not positional arguments, because parameters to 4GL procedures are always passed by name and never by position.
A valid request:
{
  "jsonrpc": "2.0",
  "method": "subtract",
  "params": {
    "subtrahend": 23,
    "minuend": 42
  },
  "id": 1
}
An invalid request:
{
  "jsonrpc": "2.0",
  "method": "subtract",
  "params": [
    23,
    42
  ],
  "id": 1
}