{
"1":
{
"body": {
"task": {
"object_type": "OBJECT_FACE",
"source_address": "{{common.build_rtsp_url('{{common.get_rtsp_url
()}}','rtsp://admin:admin1234@172.20.13.126:554')}}",
"task_id": "",
"camera_info": {
"device_type": "{{image.random_str_re('^[a-z]{10,20}$')}}",
"internal_id": {
"region_id": 1,
"camera_idx": 100
},
"place_code": "{{image.random_str_re('^[0-9]{1,5}$')}}",
"tollgate_id": "9",
"tollgate_name": "{{image.random_str_re('^[0-9]{1,5}$')}}",
"source_id": "{{image.random_str_re('^[0-9]{1,5}$')}}",
"place_name": "{{image.random_str_re('^[\\w]{3,5}$')}}",
"device_id": "{{image.random_str_re('^[0-9]{1,5}$')}}"
}
}
},
"title": "camera_id=??",
"url": "{{common.url('url_video_process')}}",
"rest": "/v1/tasks",
"response": {
"task": {
"includekey": [
"creation_time",
"object_type",
"source_address",
"task_id",
"camera_info"
],
"type": "dict"
},
"region_id": {
"type": "int"
},
"task_id": {
"re": "^[0-9]{0,40}$",
"type": "str"
},
"object_type": {
"in": [
"OBJECT_FACE",
"OBJECT_FACE"
]
},
"camera_info": {
"includekey": [
"internal_id",
"tollgate_id",
"source_id",
"device_id"
],
"type": "dict"
},
"internal_id": {
"includekey": [
"region_id",
"camera_idx"
],
"type": "dict"
},
"password?": {
"=": "{{key.password}}"
},
"camera_idx": {
"type": "int"
},
"source_address": {
"=": "{{common.build_rtsp_url('{{common.get_rtsp_url
()}}','rtsp://admin:admin1234@172.10.23.23:554')}}"
}
},
"key": [
"task_id"
],
"method": "POST",
"wait": 120000
},
"2":
{
"url": "{{common.url('url_video_process')}}",
"title": "task_id?1?5????",
"method": "GET",
"rest": "/v1/tasks/{{key.task_id}}",
"response": {
"status.status":{"=":"OK"}
},
"teardown": [
"delete",
"video_process"
]
}
}
不知道你想要实现什么功能,按照你说的只是找到值的话,直接遍历josn对象就可以啊
这是我朋友给我出的题 不知道怎么遍历
@yyx何以言欢: json对象啊 和普通对象类似 看你用什么语言呢