how to remove " in json string?

Use stringByReplacingOccurrencesOfString api like this below:-

NSString *modStr=[[jsonStr stringByReplacingOccurrencesOfString:@""" withString:@""]stringByReplacingOccurrencesOfString:@"," withString:@" "];

Output:-

{login_values:{password:xxxxx@1234 loginid:[email protected]}}

Leave a Comment