gpt4 book ai didi

json - 在我的 json 中阅读完 JSON 内容和 Unexpected token 后遇到的附加文本

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

我用 JSON.Net 创建的 json-feed 有一些问题。
当我尝试解析它时,它给了我

Additional text encountered after finished reading JSON content: ,. Path '', line 17, position 4.



我尝试用 http://json.parser.online.fr/ 验证它它说“语法错误:意外的 token ,”。

任何想法为什么?

我在下面粘贴了我的 json:
{
"ReviewId": 10250,
"DateOfVisit": "Wed, 04 Jan 2012 00:00:00 +01:00",
"SmartDateOfVisit": "Wednesday, January 04, 2012 12:00 AM",
"First": null,
"IsFeatured": null,
"Rating": 5,
"Text": "nice food",
"ReviewTitle": "superb experience",
"DisplayName": "mr. X",
"ProfilePagePath": "http://facebook.com",
"ProfileImage": "http://facebook.com/images/anonymous.png",
"UserReviewsWritten": 119,
"PlaceName": "Some place",
"PlaceUrl": "http://www.somesite.com/someplace"
},
{
"ReviewId": 10250,
"DateOfVisit": "Wed, 04 Jan 2012 00:00:00 +01:00",
"SmartDateOfVisit": "Wednesday, January 04, 2012 12:00 AM",
"First": null,
"IsFeatured": null,
"Rating": 5,
"Text": "nice food",
"ReviewTitle": "superb experience",
"DisplayName": "mr. X",
"ProfilePagePath": "http://facebook.com",
"ProfileImage": "http://facebook.com/images/anonymous.png",
"UserReviewsWritten": 119,
"PlaceName": "Some place",
"PlaceUrl": "http://www.somesite.com/someplace"
}

最佳答案

{ ... }是有效的 JSON。之后,,是一个意想不到的 token 。之后,{ ... }尾随垃圾。

关于json - 在我的 json 中阅读完 JSON 内容和 Unexpected token 后遇到的附加文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13783070/

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