Received: from eggs.gnu.org ([2001:4830:134:3::10]:38715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axDIs-0007EO-Kk for qemu-devel@nongnu.org; Mon, 02 May 2016 08:50:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axDIh-0003bH-0F for qemu-devel@nongnu.org; Mon, 02 May 2016 08:50:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axDIg-0003Um-RX for qemu-devel@nongnu.org; Mon, 02 May 2016 08:50:10 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (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 AD64162648 for ; Mon, 2 May 2016 12:49:59 +0000 (UTC) From: Markus Armbruster References: <1461903820-3092-1-git-send-email-eblake@redhat.com> <1461903820-3092-9-git-send-email-eblake@redhat.com> <878tzsmxwx.fsf@dusky.pond.sub.org> Date: Mon, 02 May 2016 14:49:57 +0200 In-Reply-To: <878tzsmxwx.fsf@dusky.pond.sub.org> (Markus Armbruster's message of "Mon, 02 May 2016 14:45:02 +0200") Message-ID: <874maglj4a.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 Markus Armbruster writes: > 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? Oh, now I see: you asked yourself the same question, and PATCH 10+11 are the result. The weekend deleted the cover letter from my memory %-)