【发布时间】:2021-06-24 05:33:40
【问题描述】:
有人可以帮我提取 JSON 响应吗?我想在客户端下获取资产和 ID 和名称的值,并在我的代码中声明它。在我的 java 代码中提取这些值对我没有任何作用
[
{
"metadata": {
"asset": "ef59872625",
"customerInfo": {
"client": {
"id": "0CgIHVIA3",
"name": "JAssociates"
}
},
"adInfo": {
"title": "Te1",
"adId": "Te1",
"cartNumber": "98462",
"dueDate": "2021-06-23",
"dubber": {
"id": null,
"name": null,
"email": null
},
"archiveOn": "2021-06-29",
"eraseOn": "2021-09-24",
"length": {
"unit": "seconds",
"amount": 30
},
"creatID": 15813794
},
"targetInfo": [
{
"channelType": "AA",
"market": {
"id": 400,
"name": "Dallas, TX",
"Status": "Success",
"Status2": {
"state": "Submitted",
"message": null
}
}
}
]
},
"links": [
{
"href": "https://interntadata",
"type": "metadata"
},
{
"href": "https://interntent",
"type": "content"
}
]
}
]
任何指针都会有很大帮助
【问题讨论】:
-
不工作是什么意思?请解释清楚并贴出相关代码。
标签: java rest-assured rest