Received: from eggs.gnu.org ([2001:4830:134:3::10]:37717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axDE7-0007Nt-T7 for qemu-devel@nongnu.org; Mon, 02 May 2016 08:45:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axDDw-0002S1-85 for qemu-devel@nongnu.org; Mon, 02 May 2016 08:45:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axDDw-0002LJ-36 for qemu-devel@nongnu.org; Mon, 02 May 2016 08:45:16 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C808F81103 for ; Mon, 2 May 2016 12:45:04 +0000 (UTC) From: Markus Armbruster References: <1461903820-3092-1-git-send-email-eblake@redhat.com> <1461903820-3092-9-git-send-email-eblake@redhat.com> Date: Mon, 02 May 2016 14:45:02 +0200 In-Reply-To: <1461903820-3092-9-git-send-email-eblake@redhat.com> (Eric Blake's message of "Thu, 28 Apr 2016 22:23:29 -0600") Message-ID: <878tzsmxwx.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v3 08/18] qjson: Simplify by using json-output-visitor List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, famz@redhat.com Eric Blake writes: > Instead of rolling our own limited JSON outputter, we can just > wrap the more full-featured JSON output Visitor. > > This slightly changes the output (different spacing), but the > result is still equivalent JSON contents. > > Signed-off-by: Eric Blake The file comment /* * QEMU JSON writer * becomes misleading. This isn't "the" QEMU JSON writer. It's not even "a" JSON writer anymore. It's a (QOM) object to accumulate JSON in a limited way. Why it's a *QOM* object I can't see. If I take the QOMness away, all that's left is a thin, trivial wrapper around the visitor. Why is it useful?