4
Vote

JSON output for commands?

description

it would be much better if the commands return a machine readable result. so you don't have to implement a parser on the client side.
even it's not hard to do so. i would recommend the use of JSON. for artists the output could be like this:
 
artists {
names: [
artists1, artist2, artist3, artist4, artist5
],
count: 5,
cached: true,
duration: 0,0290016
}
 
the same schema could be used for every other output list. i think it woul produce less data, and it's easier to read, since JSON is implemented in nearly
every language you can imagine.

comments

Tarquinio wrote Jan 26, 2010 at 7:11 AM

oh yeah, this would be very nice

wrote Mar 7, 2010 at 3:24 PM

wrote Feb 21, 2013 at 10:31 PM