2012-10-16, 16:42
Hi,
I have XBMC 11.0 installed on Ubuntu 10.04. There is a problem: the response in JSON RPC does not have new lines for each line. For example:
Request:
{"jsonrpc": "2.0", "method": "Application.GetProperties", "params":{"properties":["volume", "name", "muted", "version"]}, "id":5}
Response:
{"id":5,"jsonrpc":"2.0","result":{"muted":false,"name":"XBMC","version":{"major":11,"minor":0,"revision":"Unknown","tag":"stable"},"volume":80}}
If I run the XBMC 11.0 on Mac (Lion), I got the response formatted as below:
{
"id": 5,
"jsonrpc": "2.0",
"result": {
"muted": false,
"name": "XBMC",
"version": {
"major": 11,
"minor": 0,
"revision": "20120321-14feb09",
"tag": "stable"
},
"volume": 55
}
}
My question: how can I make XBMC on Ubuntu also respond JSON request with new lines for each line in its XML text?
Thanks.
Han
I have XBMC 11.0 installed on Ubuntu 10.04. There is a problem: the response in JSON RPC does not have new lines for each line. For example:
Request:
{"jsonrpc": "2.0", "method": "Application.GetProperties", "params":{"properties":["volume", "name", "muted", "version"]}, "id":5}
Response:
{"id":5,"jsonrpc":"2.0","result":{"muted":false,"name":"XBMC","version":{"major":11,"minor":0,"revision":"Unknown","tag":"stable"},"volume":80}}
If I run the XBMC 11.0 on Mac (Lion), I got the response formatted as below:
{
"id": 5,
"jsonrpc": "2.0",
"result": {
"muted": false,
"name": "XBMC",
"version": {
"major": 11,
"minor": 0,
"revision": "20120321-14feb09",
"tag": "stable"
},
"volume": 55
}
}
My question: how can I make XBMC on Ubuntu also respond JSON request with new lines for each line in its XML text?
Thanks.
Han