Json parsing in c lens

when parsing the contents of a .json file, a string like " jamie's" appears as " jamie 's". Does anyone know why this is so?

+3
source share
3 answers

Make sure you use the / json application as the content type to transfer data from the server to the client.

0
source

http. escape-, ' % 27...

NSString "stringByReplacingPercentEscapesUsingEncoding:" "stringByAddingPercentEscapesUsingEncoding:" .

escape-, , , stringByReplacingOccurrencesOfString:@"@#039;" withString:@"'" '...

0
source

Source: https://habr.com/ru/post/1733865/


All Articles