This patchset add a JSON output mode to the qemu-img info command. It's a rewrite from scratch of the original patchset by Wenchao Xia following Anthony Liguori advices on JSON formating.
To use it simply add --machine=json to the command line. Benoît Canet (3): qapi: Add SnapshotInfo. qapi: Add ImageInfo. qemu-img: Add json output option to the info command. Makefile | 3 +- qapi-schema.json | 57 ++++++++++++++++++++++++ qemu-img.c | 126 +++++++++++++++++++++++++++++++++++++++++++++++++----- 3 files changed, 175 insertions(+), 11 deletions(-) -- 1.7.9.5