[libvirt] [PATCH 05/12] Add a JSON generator API.