作为 Robot Framework 验证的一部分,我将以下数据(存储为 ${response})作为获取请求响应:
{
"interfaces": [
{
"name": "eth0",
"status": "ready",
"macAddress": "xx:xx:xx:xx:xx:xx",
"ipv4": {
"mode": "DHCP",
"address": "127.0.0.1",
"mask": "255.255.255.0",
},
"ipv6": {
"mode": "DISABLED",
"addresses": [],
"gateway": "",
}
}
],
"result": 0
}
And I would like to get value of key ipv4 and store in variable
3 library is requestlibrary collection httplibrary.http
is there anykeyword to save this value ? please help me