JSON text did not start with array or object and option to allow fragments not set

后端 未结 5 831
孤城傲影
孤城傲影 2020-12-04 01:50

I\'m sending this json response from server for a request to my IOS 7 app.

{
 \"root\": {
    \"success\": \"1\",
    \"message\": \"Successfully retrieved          


        
5条回答
  •  一生所求
    2020-12-04 02:16

    It usually is because of some warning message throwing out from your server without putting it in the response array. For example in PHP, some "warning messages" are not caught in your array so that when you finally use "echo json_encode($RESPONSE_ARR)," it is not a JSON format.

提交回复
热议问题