0

错误:第 12 行的解析错误:..."disliked": "true"}, { "liked": "true" ---------------------- ^ 期待“EOF”,得到“,”

杰森:

{“喜欢”:“真”,“user_id”:“101”,“video_end_type”:“3”,“minutes_played”:“3”,“video_id”:“101”,“geo_cd”:“AP”,“ channel_id”:“11”,“creator_id”:“101”,“时间戳”:“07/05/2019 01:36:35”,“不喜欢”:“真”},{“喜欢”:“真”, “user_id”:“102”,“video_end_type”:“null”,“minutes_played”:“4”,“video_id”:“102”,“geo_cd”:“AP”,“channel_id”:“12”,“creator_id” ": "102", "时间戳": "15/04/2019 17:04:00”,“不喜欢”:“真”}

4

1 回答 1

0

您的 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"
   }
]
于 2020-06-06T12:09:19.847 回答