2010-10-14, 22:54
Ive been struggling for days trying to figure out how to use this:p I'm such a noob when it comes to json (Never even heard of it until a few days ago)
Im trying to code a web interface for XBMC because i find that all of the interfaces atm are lacking some things in different areas. Plus i like coding my own tools
So anyway is there anything to help with this at all? i simply do not understand the syntax:S Any tutorials? i know there are lists of commands, but how do i set out the json query and post it? im trying things along the lines of...
To try and get a list of films... the alert just returns NULL i simply dont understand it. Any help would be appreciated. Thanks
Im trying to code a web interface for XBMC because i find that all of the interfaces atm are lacking some things in different areas. Plus i like coding my own tools
So anyway is there anything to help with this at all? i simply do not understand the syntax:S Any tutorials? i know there are lists of commands, but how do i set out the json query and post it? im trying things along the lines of...
Quote:jQuery.post("http://127.0.0.1:8080/jsonrpc" + '?GetMovies', '{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": { "start": 0, "fields": ["title"] }, "id": 1}', jQuery.proxy(function(data) {
alert(data);
}, this), 'json');
To try and get a list of films... the alert just returns NULL i simply dont understand it. Any help would be appreciated. Thanks