Additional text encountered after finished reading JSON content and Unexpected token , in my json

丶灬走出姿态 提交于 2019-12-10 15:35:46

问题


I am having some problems with my json-feed created with JSON.Net. When I try to parse it, it gives me

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

I tried validating it with http://json.parser.online.fr/ and it says "SyntaxError: Unexpected token ,".

Any ideas why ?

I have pasted my json below:

{
    "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:


{ ... } is valid JSON. After that, , is an unexpected token. After that, { ... } is trailing garbage.



来源:https://stackoverflow.com/questions/13783070/additional-text-encountered-after-finished-reading-json-content-and-unexpected-t

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!