How do I call a method that takes no parameters?

Mar 3, 2013 at 4:04 AM
According to the JSON RPC spec, the params element is optional, but if I omit it I get

{"jsonrpc":"2.0","error":{"code":-32602,"message":"Invalid params","data":"The number of parameters could not be counted"},"id":1}
Mar 3, 2013 at 4:08 AM
This appears to work, a post of

{"jsonrpc": "2.0", "method": "getPolls", "params": {}, "id": 3}
Mar 4, 2013 at 4:36 PM
I'm glad you found a workaround.

I'll add the bug to Issue Tracker and fix it in the next release.