2010-12-23, 17:47
Montellese Wrote:Unfortunately XBMCs JSON RPC API is not yet fully compliant with the SJON RPC 2.0 specification. This means that all the methods which only take a single method do this by expecting the json value directly and not within an array or object. So currently the "valid" call would be
Code:{"jsonrpc": "2.0", "params": 10, "id": "gfc5nrn0", "method": "videoplayer.seektime"}
But this is a known problem and I'm currently discussing with topfs2 how this would be solved best and I'm willing to fix this as soon as it is decided how (check Trac #10095 for more details).
Hm I see. But unfortunately, passing the parameter like that doesn't work either:
Code:
'{\n "error" : {\n "code" : -32100,\n "message" : "Failed to execute method."\n },\n "id" : "gfc5nrn0",\n "jsonrpc" : "2.0"\n}\n'