qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC 00/11]: QMP feature negotiation support


From: Luiz Capitulino
Subject: Re: [Qemu-devel] [RFC 00/11]: QMP feature negotiation support
Date: Tue, 26 Jan 2010 11:45:21 -0200

On Tue, 26 Jan 2010 12:57:54 +0000
Jamie Lokier <address@hidden> 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).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]