Today to help friends to get this problem, the JSON return is all with ' \ ', so to remove the backslash, but OC inside the ' \ ' is an escape character, not directly with the "\" or the like, after a search, found the OC on the expression of the escape character, as follows:
\a-sound Alert
\b-Backspace
\f-form Feed
\ n-Line break
\ r-Enter
\ t-Horizontal tab
\v-Vertical tab
\ \-Back slash
\ "-Double quotation marks
\ '-Single quote
Then know how to say ' \ ', removing this is a matter of traversal. The code is as follows:
nsmutablestring *responsestring = [nsmutablestring stringwithstring:[request responsestring];
NSString *character = nil;
for (int i = 0; i < responsestring.length; i + +) {
character = [Responsestring Substringwithrange:nsmakerange (I, 1)];
if ([character isequaltostring:@ "\ \"])
[Responsestring Deletecharactersinrange:nsmakerange (I, 1)];
}
Of course the other escape symbols are removed in the same vein.
IOS removes escape characters from JSON