[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Re: ANN: QEMU Monitor Protocol git tree
From: |
Jamie Lokier |
Subject: |
Re: [Qemu-devel] Re: ANN: QEMU Monitor Protocol git tree |
Date: |
Wed, 23 Sep 2009 19:36:17 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Anthony Liguori wrote:
> The main advantage of not relying on whitespace terminated messages is
> that it gives us the ability to pretty print the protocol on the wire.
> For instance, I'd rather read:
>
> { "execute": "info",
> "id" : "32",
> "arguments": ["cpus"]}
I agree. It's not even expensive.
It's still useful for parsers to easily find the end before parsing.
So declare the JSON terminator to be "}\n" or "}\r\n". That shouldn't
occur anywhere inside a pretty printed structure. The internal
closing braces are all followed by a comma.
:-)
-- Jamie
- [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Luiz Capitulino, 2009/09/21
- Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Anthony Liguori, 2009/09/22
- Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Daniel P. Berrange, 2009/09/23
- Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Avi Kivity, 2009/09/23
- [Qemu-devel] Re: ANN: QEMU Monitor Protocol git tree, Paolo Bonzini, 2009/09/23
- [Qemu-devel] Re: ANN: QEMU Monitor Protocol git tree, Avi Kivity, 2009/09/23
- Re: [Qemu-devel] Re: ANN: QEMU Monitor Protocol git tree, Nathan Baum, 2009/09/23
- Re: [Qemu-devel] Re: ANN: QEMU Monitor Protocol git tree, Luiz Capitulino, 2009/09/23
- Re: [Qemu-devel] Re: ANN: QEMU Monitor Protocol git tree, Anthony Liguori, 2009/09/23
- Re: [Qemu-devel] Re: ANN: QEMU Monitor Protocol git tree,
Jamie Lokier <=
- Re: [Qemu-devel] Re: ANN: QEMU Monitor Protocol git tree, Paolo Bonzini, 2009/09/23
- Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Markus Armbruster, 2009/09/23
- Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Luiz Capitulino, 2009/09/23
- Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Jamie Lokier, 2009/09/23
- Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Anthony Liguori, 2009/09/23
- Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Daniel P. Berrange, 2009/09/23
- Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Luiz Capitulino, 2009/09/23
Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Luiz Capitulino, 2009/09/23
Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Daniel P. Berrange, 2009/09/23