I'm developing a simple XBMC remote for Java ME (mainly for my cheap'o Nokia) and am able to communicate with the server, play/pause, skip, get all artists, etc.
My problem is, I can't seem to ask for specific fields. From the XBMC JSON Wiki:
Quote:AudioLibrary.GetArtists
Retrieve all artists
Permission: ReadData
Parameters:
[ Library.Id genreid = -1 ]
[ array fields ]
[ List.Limits limits ]
[ List.Sort sort ]
Returns:
Type: object
Optional: true
Properties:
List.LimitsReturned limits
[ array artists ]
I come up with this command, for example:
Code:
{"jsonrpc": "2.0", "method": "AudioLibrary.GetArtists", "params": {"fields": ["artistid", "label"]}, "id": 1}All is fine, there's no error and I get the artistid and label, but I also get the fanart directory - the exact same thing I get without supplying any parameters.
I've tried all kinds of combinations of arrays and objects to supply for the params object, but nothing seems to work.
What am I doing wrong?

![[Image: badge.gif]](http://www.ohloh.net/projects/149/badge.gif)

![[Image: badge.gif]](http://www.ohloh.net/projects/9132/badge.gif)
Search
Help