[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH] json: escape u0000 .. u001F when outputting jso
From: |
Markus Armbruster |
Subject: |
[Qemu-devel] Re: [PATCH] json: escape u0000 .. u001F when outputting json |
Date: |
Mon, 25 Jan 2010 16:48:48 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Anthony Liguori <address@hidden> writes:
> Markus Armbruster pointed out:
>
> JSON requires control characters in strings to be escaped. RFC 4627
> section 2.5:
>
> A string begins and ends with quotation marks. All Unicode
> characters may be placed within the quotation marks except for the
> characters that must be escaped: quotation mark, reverse solidus, and
> the control characters (U+0000 through U+001F).
>
> We've been quoting the special escape sequences that JSON defines but we
> haven't been encoding the full control character range. This patch fixes
> that.
Looks good.