ios - Trying to get response from web-service using JSON error occurs -


i trying response web-service using json following error occurs.

json error

please me solve

the error json returned web not correctly formatted. suggest extract data in string in order check receiving debugger.

i noticed in setter setting userdefaults without synchronize. after change of defaults object need call defaults.synchronize() in order make effective changes.

at last suggest never assume data coming web correct , recommend put try in catch user not have crash in case of problems.

hope helped.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -