I’m using Json framework in my project.
I parse the Json response as follow,
- (void)parseResponse:(NSData*)responseData
{
NSMutableString *responseString = [[NSMutableString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
NSDictionary *responseDic = [responseString JSONValue];
NSString *responseDataString = [responseDic objectForKey:NSLocalizedString(@"JSON_RESPONSE_DICTIONARY_KEY", nil)];
[responseString release];
}
So, is it correct if I call release on responseString as I had done ??
Edited
I did as follow,
NSMutableString *responseString = [[NSMutableString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
NSDictionary *responseDic = [responseString JSONValue];
NSString *responseDataString = [responseDic objectForKey:NSLocalizedString(@"JSON_RESPONSE_DICTIONARY_KEY", nil)];
NSDictionary *responseDataDic = [responseDataString JSONValue];
[responseString release];
I think now I’m safe.
Yes,