I was adding the examples of the JSON-RPC 2.0 specification as unit
tests to my test suite, and I noticed the following small type:
rpc call Batch (all notifications):
--> [
{"jsonrpc": "2.0", "method": "notify_sum", "params": [1,2,4]},
{"jsonrpc": "2.0", "method": "notify_hello", "params": [7]},
]
<-- //Nothing is returned for all notification batches
The last request in the array has a trailing comma, due to which the
array is not valid JSON and my test fails to parse the batch request.
Best regards,
Sebastiaan
I got bitten by a trailing comma once, in an older version of IE
once... FF didn't complain and it took ages to track down.
--
Matt (MPCM)