I'm getting json data in my NSlog in Xcode using following code
NSString *jsonStr = [[NSString alloc] initWithData:activityData encoding:NSUTF8StringEncoding];
NSLog(@"Sync Json:%@",jsonStr);
So if I have to get the same json data in my device log which can be sent as a text file as an email.