Unescaped control character around character 981.Error while parsing JSON

前端 未结 4 861
长发绾君心
长发绾君心 2021-01-11 23:58

Error Domain=NSCocoaErrorDomain Code=3840 \"Unescaped control character around character 981.\" UserInfo={NSDebugDescription=Unescaped control character a

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-12 00:49

    As per you told there is problem related to "\n"

    So i suggest you can add "\" which will work for you like below

    "\n"=> "\\n"

    Because this are special character call backspace character.

    Hope you get your answer

提交回复
热议问题