[PATCH 4/8] qemuMonitorJSONGetDeviceProps: Refactor to modern standards