Re: [Qemu-devel] [PATCH v4 24/28] qapi: Add JSON output visitor

2016-06-03 Thread Markus Armbruster
Eric Blake writes: > On 06/03/2016 01:39 AM, Markus Armbruster wrote: >> Eric Blake writes: >> >>> We have several places that want to go from qapi to JSON; right now, >>> they have to create an intermediate QObject to do the work. That >>> also has the drawback that the JSON formatting of a Q

Re: [Qemu-devel] [PATCH v4 24/28] qapi: Add JSON output visitor

2016-06-03 Thread Eric Blake
On 06/03/2016 01:39 AM, Markus Armbruster wrote: > Eric Blake writes: > >> We have several places that want to go from qapi to JSON; right now, >> they have to create an intermediate QObject to do the work. That >> also has the drawback that the JSON formatting of a QDict will >> rearrange keys

Re: [Qemu-devel] [PATCH v4 24/28] qapi: Add JSON output visitor

2016-06-03 Thread Markus Armbruster
Eric Blake writes: > We have several places that want to go from qapi to JSON; right now, > they have to create an intermediate QObject to do the work. That > also has the drawback that the JSON formatting of a QDict will > rearrange keys (according to a deterministic, but unpredictable, > hash)

[Qemu-devel] [PATCH v4 24/28] qapi: Add JSON output visitor

2016-05-18 Thread Eric Blake
We have several places that want to go from qapi to JSON; right now, they have to create an intermediate QObject to do the work. That also has the drawback that the JSON formatting of a QDict will rearrange keys (according to a deterministic, but unpredictable, hash), when humans have an easier ti