how to remove " in json string?

Use stringByReplacingOccurrencesOfString api like this below:-

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

Output:-

{login_values:{password:[email protected] loginid:[email protected]}}

Browse More Popular Posts

Leave a Comment