JSON.parse Error #1132: Invalid JSON parse input (Flex / Actionscript / PHP)

后端 未结 4 993
梦毁少年i
梦毁少年i 2021-01-14 15:40

I am getting \"Error #1132: Invalid JSON parse input\" and cannot understand why.

My json is generated by php: json_encode($x). Output json if displayed in TextArea(

4条回答
  •  耶瑟儿~
    2021-01-14 16:09

    The escape sequence of \\' appears to terminate the JSON.

    it\\'s should be it\'s if you want "it's".

    Since this JSON uses " for strings, it could just be: it's.

    JSON:

    {
       "title":"The Incredibles",
       "year":"2004",
       "type":"movie",
       "id":"9806",
       "imdb_id":"tt0317705",
       "rating":8.6,
       "tagline":"No gut, no glory",
       "overview":"Bob Parr has given up his superhero days to log in time as an insurance adjuster and raise his three children with his formerly heroic wife in suburbia. But when he receives a mysterious assignment, it\'s time to get back into costume.",
       "runtime":115,
       "budget":92000000,
       "image":"http:\/\/cf2.imgobject.com\/t\/p\/w185\/jjAgMfj0TAPvdC8E5AqDm2BBeYz.jpg",
       "trailer":"rMfrFG_69zM"
    }
    

提交回复
热议问题