qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Re: [RFC 0/7] QError v1


From: Anthony Liguori
Subject: Re: [Qemu-devel] Re: [RFC 0/7] QError v1
Date: Fri, 30 Oct 2009 12:48:06 -0500
User-agent: Thunderbird 2.0.0.23 (X11/20090825)

Paolo Bonzini wrote:
On 10/30/2009 06:15 PM, Daniel P. Berrange wrote:
If we're going to use JSON we should be 100% compliant with the JSON
spec, not extend it. By adding custom QEMU extensions, we loose the
ability for programming language to trivially talk to QEMU using a
standard JSON parser, and instead everyone has to write custom client
side code yet again.

The single-quoted-string extension is just to be used internally to ease writing JSON templates in C. All emitted text will go through the JSON encoder, which will be conservative (no extensions) for the reasons you mention.

Correct. Furthermore, even our internal extensions should be as minimal as possible. The only reason for allowing single quoted strings is that "{"\"key\": 32}" gets out of hand quickly. It's not so bad in other languages that support single quoted strings but for C, it's really a necessary extension.

Regards,

Anthony Liguori




reply via email to

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