Re: [Qemu-devel] [PATCH 2/5] scripts: qmp-shell: add support for [] expressions

2015-04-22 Thread John Snow
On 04/22/2015 10:28 AM, Eric Blake wrote: On 04/21/2015 08:02 PM, John Snow wrote: qmp-shell currently allows you to describe values as JSON expressions: key={"key":{"key2":"val"}} But it does not currently support arrays, which are needed for serializing and deserializing transactions: key

Re: [Qemu-devel] [PATCH 2/5] scripts: qmp-shell: add support for [] expressions

2015-04-22 Thread Eric Blake
On 04/21/2015 08:02 PM, John Snow wrote: > qmp-shell currently allows you to describe values as > JSON expressions: > > key={"key":{"key2":"val"}} > > But it does not currently support arrays, which are needed > for serializing and deserializing transactions: > > key=[{"type":"drive-backup","dat

[Qemu-devel] [PATCH 2/5] scripts: qmp-shell: add support for [] expressions

2015-04-21 Thread John Snow
qmp-shell currently allows you to describe values as JSON expressions: key={"key":{"key2":"val"}} But it does not currently support arrays, which are needed for serializing and deserializing transactions: key=[{"type":"drive-backup","data":{...}}] Add support for arrays. CAVEAT: The parser is