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