arrays - 从数组定义 JSON 变量
问题描述
有人能告诉我如何从数组中定义 JSON 变量吗?
API 端点想要从 POST 请求中接收一个数字,并且该数字包含在一个数组中:
"template_job_id": "4109170002"
x 存储在这个数组中,应该是value = 4109170002
"custom_fields_values": [
{
"id": 122709143,
"custom_field_id": 1202201,
"name": "ID",
"value": "4109170002",
"attachment": null,
"options": "",
"type": 1,
"type_name": "Text",
"entity": null,
"user": null,
"show_on_portal": false,
"mandatory": true
},
{
"id": 121273903,
"custom_field_id": 1202206,
"name": "Verified Title",
"value": "",
"attachment": null,
"options": "",
"type": 1,
"type_name": "Text",
"entity": null,
"user": null,
"show_on_portal": null,
"mandatory": true
}
],
解决方案
推荐阅读
- mongodb - 动态更新 mongoDb 文档层次结构中的字段
- excel - 在 Oracle APEX 中集成 SpreadJS
- replace - 从视图更新表(替换重复值并插入新数据)
- ios - 我可以区分“DispatchGroup”异步任务完成吗?
- c# - 在浏览器中打开代码的问题
- apache - 为什么 apache HTTPD 中的所有系统环境变量都为空?
- python - 如何获得权重并将它们分配给具有不同层数的另一个模型
- sql - 显示计数函数不返回任何内容的日期 sql
- kubernetes - 我如何从谷歌 kubernetes 引擎访问云 sql
- robotframework - 如何知道生成日志文件的具体函数