gpt4 book ai didi

arrays - 我可以在 POSTMAN 中发送二维数组作为参数吗?

转载 作者:行者123 更新时间:2023-12-04 14:12:48 27 4
gpt4 key购买 nike

我需要将参数作为 POSTMAN 中的对象数组发送。

"array": [
{"field1": "html", "field2": "5"},
{"field1": "css", "field2": "3"}
]

我知道数组必须发送为 array[]但是如何将数组的一项设置为对象?

我试过这个
"array[]" : "{"field1": "html", "field2": "5"}" 

但我收到了 500响应错误。

最佳答案

enter image description here只需以原始格式(在 json 中)发送它并将数据类型指定为 application/json。为我工作

关于arrays - 我可以在 POSTMAN 中发送二维数组作为参数吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25032483/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com