2011-02-11, 19:50
I'm using the JSON-RPC interface over port 9090, and it's working great.
However, I'm having trouble trying to send it a boolean parameter.
Here is the full call:
The problem is that the true parameter for "recursive" is not in quotes, and this throws a parse error.
So I put in in quotes, which gets rid of the parse error, but the directory is NOT recursively scanned. This makes me believe that XBMC does not think of a "true" in quotes as a boolean true.
I've also tried it as "true" and as "TRUE".
Any ideas on what I'm doing wrong?
However, I'm having trouble trying to send it a boolean parameter.
Here is the full call:
Code:
{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "smb://share/folder", "media": "video", "recursive": true}, "id": "1"}
So I put in in quotes, which gets rid of the parse error, but the directory is NOT recursively scanned. This makes me believe that XBMC does not think of a "true" in quotes as a boolean true.
I've also tried it as "true" and as "TRUE".
Any ideas on what I'm doing wrong?