iOS JSON Error: NSDebugDescription=Garbage at end

前端 未结 5 760
有刺的猬
有刺的猬 2020-12-21 07:52

This is a really weird bug, when grabbing JSON from my server (which is produced via PHP), I get this error when calling:

json = [NSJSONSerialization JSONObj         


        
5条回答
  •  醉梦人生
    2020-12-21 08:42

    I ended up having to change my php file from echoing the json syntax to simply outputting with json_encode.

提交回复
热议问题