Question: I was just wondering about this `NSLog` vs JSON issue i've had for a while.

So I have my `responseObject` (type is `id`), can I simply `NSLog` it ?

When i do, i see a JSON-like text, but there are some massive issues, and I don't know if its the real JSON that's a problem or the `NSLog` that fails.

Can I trust the `NSLog` about this? Or if I want to print it "the web way", do I need to do something else?

Answer: 
Once you've got the `NSData` object containing the HTTP response content, perhaps using:

```
NSData *data = [NSData dataWithContentsOfURL:someURL];

```

you normally "parse" it into Objective-C objects using:

```
NSError *error = nil;
NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data
                                                     options:kNilOptions 
                                                       error:&error];

```

However you can also log the data response by first turning it into a string:

```
NSString *jsonString = [[NSString alloc] initWithData:data
                                             encoding:NSUTF8StringEncoding];
NSLog(@"Response JSON=%@", jsonString);

```
Do as below for well formatted log of response.

```
id jsonResponse = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
NSLog(@"Response : %@",[jsonResponse description]);

```

Hope, This will work.