2011-11-27, 16:56
Hi all
I'm writing a java/android library for XBMC.
I'm trying to generate the methods and classes from the JSON-RPC spec.
I see that JSONRPC.Introspect might do what I want, but it seems it only shows the methods, but not the parameters and the referenced types. Am I wrong?
Can anyone show me how to make json-request to make introspect() output method and type definition (or any other way to get them)?
I see on github there is types.json in the master but not for Dharma.
It seems that there is a difference between the two:
In the github-types.json, Audio.Fields.Album has
as fields. But when I look at the request the web interface makes, I see:
(note the album_ prefix)
Thanks
I'm writing a java/android library for XBMC.
I'm trying to generate the methods and classes from the JSON-RPC spec.
I see that JSONRPC.Introspect might do what I want, but it seems it only shows the methods, but not the parameters and the referenced types. Am I wrong?
Can anyone show me how to make json-request to make introspect() output method and type definition (or any other way to get them)?
I see on github there is types.json in the master but not for Dharma.
It seems that there is a difference between the two:
In the github-types.json, Audio.Fields.Album has
Code:
"title", "description", "artist", "genre",
"theme", "mood", "style", "type", "albumlabel",
"rating", "year", "musicbrainzalbumid",
"musicbrainzalbumartistid", "fanart", "thumbnail",
"artistid"
Code:
[
"album_description",
"album_theme",
"album_mood",
"album_style",
"album_type",
"album_label",
"album_artist",
"album_genre",
"album_rating",
"album_title"
]
Thanks