How to find why NSMutableData is invalid
- by 4thSpace
I access a RESTFUL url and get back results.  The results are in JSON.  I turn the response into a string via:
- (void)connectionDidFinishLoading:(NSURLConnection   *)connection {
NSString *json = [[NSString alloc] initWithBytes:[self.receivedData mutableBytes] length:[self.receivedData length] encoding:NSUTF8StringEncoding];
The json variable has a value of 0x0.  When I mouse over it, I see <Invalid CFStringRef.  How can I debug this to tell why it is invalid?  I render the JSON given back through the browser in A JSON parser.  That checks out fine.  
Results are given back by entering an ID in the URL.  Other IDs return results without issue.  The result set is fairly large.