title: Creating JSON with iOS 5 - issues
body: <p>I'm trying to create a JSON object that looks like this:</p>
  
  <pre><code>  { "request_type":"send_string" "security_level":0 "device_type":"ios" "blob":{"string":"blah"}"}
  </code></pre>
  
  <p>Here's my attempt:</p>
  
  <pre><code>NSDictionary *blobData = [NSDictionary dictionaryWithObjectsAndKeys:
                            sendString,@"string",
                            nil];
  NSString *blobString = [[NSString alloc]
                          initWithData:[NSJSONSerialization dataWithJSONObject:blobData options:kNilOptions error:&amp;error]
                          encoding:NSUTF8StringEncoding];
  NSLog(@"Blob Created: %@", blobString);
  NSDictionary *requestData = [NSDictionary dictionaryWithObjectsAndKeys:
                               @"send_string",@"request_type",
                               0,@"security_level",
                               @"ios",@"device_type",
                               //No Email Provided, This is just for testing
                               blobString,@"blob",
                               nil];
  
  NSData *JSONRequestData = NULL;
  if ([NSJSONSerialization isValidJSONObject:requestData]) {
      NSLog(@"Proper JSON Object");
      JSONRequestData = [NSJSONSerialization dataWithJSONObject:requestData options:kNilOptions error:&amp;error];
  }
  else {
      NSLog(@"requestData was not a proper JSON object");
      return FALSE;
  }
  NSLog(@"%@",[[error userInfo] objectForKey:@"NSDebugDescription"]);
  NSLog(@"%@",[[NSString alloc] initWithData:JSONRequestData encoding:NSUTF8StringEncoding]);
  </code></pre>
  
  <p>The problem is, that last NSLog tells me all I've created is something like this:</p>
  
  <pre><code>{"request_type":"send_string"}
  </code></pre>
  
  <p>So when I go and try to write this to the server with</p>
  
  <pre><code>[NSJSONSerialization writeJSONObject:JSONRequestData toStream:outputStream options:0 error:&amp;error];
  </code></pre>
  
  <p>I get this error from the console:</p>
  
  <pre><code>*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** +[NSJSONSerialization writeJSONObject:toStream:options:error:]: Invalid top-level type in JSON write'
  </code></pre>