From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBdii-0006Oh-Lc for qemu-devel@nongnu.org; Wed, 23 Dec 2015 02:20:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBdid-0008DA-NF for qemu-devel@nongnu.org; Wed, 23 Dec 2015 02:20:24 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBdid-0008D5-IF for qemu-devel@nongnu.org; Wed, 23 Dec 2015 02:20:19 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 1F658C803 for ; Wed, 23 Dec 2015 07:20:19 +0000 (UTC) Date: Wed, 23 Dec 2015 15:20:14 +0800 From: Fam Zheng Message-ID: <20151223072014.GF14423@ad.usersys.redhat.com> References: <1450744268-25052-1-git-send-email-eblake@redhat.com> <1450744268-25052-4-git-send-email-eblake@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1450744268-25052-4-git-send-email-eblake@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 03/14] qapi: Factor out JSON string escaping List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: pbonzini@redhat.com, Luiz Capitulino , qemu-devel@nongnu.org, armbru@redhat.com On Mon, 12/21 17:30, Eric Blake wrote: > Pull out a new qstring_append_json_string() helper, so that all > JSON output producers can use the same output escaping rules. > > While it appears that vmstate's use of the simpler qjson.c > formatter is not currently encountering any string that needs > escapes to be valid JSON, it is better to be safe than sorry. > > Signed-off-by: Eric Blake Reviewed-by: Fam Zheng