[PATCH] qemuMigrationCapsToJSON: Refactor capability object formatting