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

后端 未结 4 996
梦毁少年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:17

    Didn't know you have solved the problem or not, however I have had the same problem too, and today finally solved it, the problem was server side, the file which returned json string, was in UTF8 encoding I have converted it(by notepad++) to ANSI and everything working ))).

提交回复
热议问题