在我的json中读完JSON内容和Unexpected令牌后遇到的其他文本

时间:2012-12-08 23:33:12

标签: json json.net

我在使用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"
  }

1 个答案:

答案 0 :(得分:7)

{ ... }是有效的JSON。之后,,是一个意外的令牌。之后,{ ... }正在追踪垃圾。