From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1Dka-00009d-TY for qemu-devel@nongnu.org; Tue, 24 Nov 2015 08:35:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1DkW-0006DG-Q2 for qemu-devel@nongnu.org; Tue, 24 Nov 2015 08:35:16 -0500 Sender: Paolo Bonzini References: <1448342531-16407-1-git-send-email-famz@redhat.com> <1448342531-16407-13-git-send-email-famz@redhat.com> <56544F43.3090603@redhat.com> <87y4dn36rm.fsf@blackfin.pond.sub.org> <20151124132541.GA16060@ad.usersys.redhat.com> <20151124133022.GA8887@ad.usersys.redhat.com> From: Paolo Bonzini Message-ID: <5654678D.1050805@redhat.com> Date: Tue, 24 Nov 2015 14:35:09 +0100 MIME-Version: 1.0 In-Reply-To: <20151124133022.GA8887@ad.usersys.redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH for-2.6 12/14] qemu-img: In 'map', use QDict to generate JSON output List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng , Markus Armbruster Cc: Kevin Wolf , Stefan Hajnoczi , Peter Lieven , qemu-devel@nongnu.org, qemu-block@nongnu.org On 24/11/2015 14:30, Fam Zheng wrote: > Or you mean we don't have to serialize the list in one go, instead we can > serialize one MapEntry a time with QAPI like what we do now? Yes, serializing the whole list in one go needs a visitor that can do streaming. We can write the array manually, and use QAPI to write each dictionary inside the array. Paolo