我正在尝试处理 json 文件,但在从 JsonLint 检查时出现错误 Expecting 'EOF', got ','

I am trying to Process a json file but while checking from JsonLint I get error Expecting 'EOF', got ','

错误:第 12 行出现解析错误: ..."disliked": "true"}, { "liked": "true" ----------------------^ 期望 'EOF',得到 ','

Json:

{ "liked": "true", "user_id": "101", "video_end_type": "3", "minutes_played": "3", "video_id": "101", "geo_cd": "AP", "channel_id": "11", "creator_id": "101", "timestamp": "07/05/2019 01:36:35", "disliked": "true" }, { "liked": "true", "user_id": "102", "video_end_type": "null", "minutes_played": "4", "video_id": "102", "geo_cd": "AP", "channel_id": "12", "creator_id": "102", "timestamp": "15/04/2019 17:04:00", "disliked": "true" }

您的 JSON 结构无效。有两个根元素,根据您的 JSON 结构,这似乎应该是一个集合。将您的 JSON 结构包裹在 [] 中,使其成为一个集合。

[
   {
      "liked":"true",
      "user_id":"101",
      "video_end_type":"3",
      "minutes_played":"3",
      "video_id":"101",
      "geo_cd":"AP",
      "channel_id":"11",
      "creator_id":"101",
      "timestamp":"07/05/2019 01:36:35",
      "disliked":"true"
   },
   {
      "liked":"true",
      "user_id":"102",
      "video_end_type":"null",
      "minutes_played":"4",
      "video_id":"102",
      "geo_cd":"AP",
      "channel_id":"12",
      "creator_id":"102",
      "timestamp":"15/04/2019 17:04:00",
      "disliked":"true"
   }
]