On Tue, 26 Jan 2010 12:57:54 +0000 Jamie Lokier <ja...@shareable.org> wrote:
> Luiz Capitulino wrote: > > capability_enable [ "foo", "bar" ] > > > > Now, only one command is not terrible difficult, but we would > > have to accept an array of objects, like: > > > > [ { "name": "foo", "enabled": true }, { "name": "bar", "enabled": true } ] > > That looks like XML-itis. This is valid json, we already output data in this format and will likely accept it in other commands. > Why not { "foo": true, "bar": true }? Possible, but if we use a dict then I would prefer the previous format, because it can be extended in a compatible way (while a single list and yours don't).