4

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

读完 JSON 内容后遇到的附加文本:,. 路径 '',第 17 行,位置 4。

我尝试使用http://json.parser.online.fr/验证它,它显示“SyntaxError: Unexpected 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"
  }
4

1 回答 1

7

{ ... }是有效的 JSON。在那之后,,是一个意想不到的令牌。之后,{ ... }就是尾随垃圾。

于 2012-12-08T23:43:53.143 回答