postman——集合——执行集合——测试脚本——示例08——将XML格式的响应体转换为json对象 将XML格式的响应体转换为json对象: console.log(xml2Json(responseBody));