This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
如果是 cossociative array
If it's associative array make it sequential array
好的,只需参考即可根据多个注释,“答案”节点在响应json中的格式不同,如果有多个“答案”在多个答案示例中注意到方括号。
设置一个阵列的一个答案使它可以
在生产中工作,我可以检查它是否是阵列,如果不是一个阵列。
OK just for reference so as per multiple comments the 'answer' node is formatted differently in the response JSON if there are more than one 'answers' note the square brackets on the multiple answer example.
Setting the one answer to an array got it to work
in production I can just check if it is an array and if not make it one.