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

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

    Your JSON is valide and dont have any prob in it. Might be this would help you. In your result event update ur code with reference below.

        // Code
        var result:Object = JSON.parse( String(event.result) );
        trace( result['title'] );
    

提交回复
热议问题