[libvirt] [PATCH 2/3] json: make it easier to type-check when getting from object