qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 01/11] QMP: Introduce specification file


From: Vincent Hanquez
Subject: Re: [Qemu-devel] [PATCH 01/11] QMP: Introduce specification file
Date: Wed, 24 Jun 2009 18:39:15 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Wed, Jun 24, 2009 at 05:22:07PM +0100, Jamie Lokier wrote:
> You can code a minimal XML parser in straight C quite easily, if it's
> a restricted subset.

even the restricted subset is not as straighforward as a json parser. and
usually using a subset means you can't interact correctly with the one that
does the full spec.

> XML and JSON both have the same ugly problem with binary data: they
> can't carry it.  It's usually base64 encoded.  Then again the QEMU
> monitor is no better this respect :-)

JSon ***DOES*** do binary data.

C String "abc\0\xff" -> Json String "abc\0000\00ff"

-- 
Vincent




reply via email to

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