JSON文件显示解析错误,但一切看起来都很好(JSON,AngularJS)

时间:2016-12-10 23:38:29

标签: angularjs json

我正在使用发送给我的JSON文件。我一直在这个JSON文件的第7行(以"概述开头)得到一个解析错误。错误如下:Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['

我通过JSONLint运行JSON并获得了相同的消息。这里发生了什么?你可以看到下面的文件(我只在这里开头,因为它很长。我尝试删除导致错误的条目,看看它是否是随机的,但是{{1} } name也会导致下一个条目出现相同的错误。任何想法都会非常有用!

"overview"

1 个答案:

答案 0 :(得分:1)

  1. 不要使用评论
  2. 不要破坏线(字符串值) - "概述"属性;
  3. 
    
    {
        "page": 1,
        "results": [{
            "poster_path": "\/il9XWx5CbNd2KdDUwrcClEZiLkv.jpg",
            "adult": false,
            "overview": "Last months of World War II in April 1945. As the Allies make their final push in the European Theater, a battle - hardened U.S.Army sergeant in the 2 nd Armored Division named Wardaddy commands a Sherman tank called Fury and its five - man crew on a deadly mission behind enemy lines.Outnumbered and outgunned, Wardaddy and his men face overwhelming odds in their heroic attempts to strike at the heart of Nazi Germany.",
            "release_date": "2014-10-15",
            "genre_ids": [10752,
                18,
                28
            ],
            "id": 228150,
            "original_title": "Fury",
            "original_language": "en",
            "title": "Fury",
            "backdrop_path": "\/pKawqrtCBMmxarft7o1LbEynys7.jpg",
            "popularity": 11.717304,
            "vote_count": 2435,
            "video": false,
            "vote_average": 7.43
        }],
        "total_results": 70,
        "total_pages": 4
    }