[PATCH v3 1/7] qemuMonitorJSONGetCPUModelExpansion: refactor parsing functions