欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

postman用json格式传递列表

程序员文章站 2022-07-12 13:17:13
...
chart_ids =[{'project_id': 101, 'course_num': 3, 'chart_id': 535},
                    {'project_id': 99, 'course_num': 2, 'chart_id': 536}]

等价于
postman

{	
	"chart_ids":
	[
	    {
	        "project_id": 101, 
	        "course_num": 3, 
	        "chart_id": 535
	    }, 
	    {
	        "project_id": 99, 
	        "course_num": 2, 
	        "chart_id": 536
	    }
	]
}