gpt4 book ai didi

ios - Parse.com - JSON 导入日期字段错误

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:55:01 25 4
gpt4 key购买 nike

我正在尝试将一些 JSON 数据导入到我在 Parse.com 中的一个表中。这样做时,出现以下错误:

导入遇到以下错误:错误 111:键 startDate、预期日期的无效类型,但得到了字符串

数据如下:

[
{
"title":"Software Webinar",
"location":"Kingsview Financial",
"host":"Josh Chase",
"startDate":"10/13/2014 12:30",
"EndDate":"10/13/2014 13:30",
"eventType":"TA",
"eventDescrioption":"Informative webinars on utilize and maximize all the features of the TA Trader platform."
}
]

我对日期格式做了一些修改,但无济于事。只是试图导入一些数据,并且必须使用 JSON 数据来这样做。感谢您的帮助。

最佳答案

像这样安排你的约会:

"startDate": {

"__type": "Date",
"iso": "2014-10-13T12:30:00.000Z"
}

你的 JSON 看起来像这样:

[
{
"title":"Software Webinar",
"location":"Kingsview Financial",
"host":"Josh Chase",
"startDate": {

"__type": "Date",
"iso": "2014-10-13T12:30:00.000Z"
},
"EndDate": {

"__type": "Date",
"iso": "2014-10-13T13:30:00.000Z"
},
"eventType":"TA",
"eventDescrioption":"Informative webinars on utilize and maximize all the features of the TA Trader platform."
}
]

希望这会有所帮助..:)

关于ios - Parse.com - JSON 导入日期字段错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26352387/

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