Re: [Qemu-devel] [PATCH 1/2] migration: Move qjson.[ch] to migration/

2016-05-06 Thread Markus Armbruster
Eric Blake writes: > On 05/04/2016 10:49 AM, Markus Armbruster wrote: >> Type QJSON lets you build JSON text. Its interface mirrors (a subset >> of) abstract JSON syntax. >> >> QAPI output visitors also produce JSON text. They assert their >> preconditions and invariants,

Re: [Qemu-devel] [PATCH 1/2] migration: Move qjson.[ch] to migration/

2016-05-05 Thread Dr. David Alan Gilbert
* Markus Armbruster (arm...@redhat.com) wrote: > Type QJSON lets you build JSON text. Its interface mirrors (a subset > of) abstract JSON syntax. > > QAPI output visitors also produce JSON text. They assert their > preconditions and invariants, and therefore abort on incorrect use. > >

Re: [Qemu-devel] [PATCH 1/2] migration: Move qjson.[ch] to migration/

2016-05-04 Thread Eric Blake
On 05/04/2016 10:49 AM, Markus Armbruster wrote: > Type QJSON lets you build JSON text. Its interface mirrors (a subset > of) abstract JSON syntax. > > QAPI output visitors also produce JSON text. They assert their > preconditions and invariants, and therefore abort on incorrect use. > >

[Qemu-devel] [PATCH 1/2] migration: Move qjson.[ch] to migration/

2016-05-04 Thread Markus Armbruster
Type QJSON lets you build JSON text. Its interface mirrors (a subset of) abstract JSON syntax. QAPI output visitors also produce JSON text. They assert their preconditions and invariants, and therefore abort on incorrect use. Contrastingly, QJSON does *not* detect incorrect use. It happily