title: iPhone sending Json Array via POST
body: <p>I need to send the following <strong>JSON array</strong> via <strong>POST</strong> to our server:</p>
  
  <pre><code>task:{"id":"123","list":"456","done":1,"done_date":1305016383}
  </code></pre>
  
  <p>I tried with the <strong>JSON library</strong>, but I was somehow to stupid to use it. I even tried to build up the POST-String by myself, but also failed:</p>
  
  <pre><code>NSString *post = @"task='{id:123,list:456,done:1,done_date:1305016383}'";
  
  NSMutableURLRequest *request=[NSMutableURLRequest requestWithURL:url 
                                                 cachePolicy:NSURLRequestReloadIgnoringCacheData    
                                              timeoutInterval:30];
  
  [request setHTTPMethod:@"POST"];    
  [request setHTTPBody:[post dataUsingEncoding:NSUTF8StringEncoding]];
  ....
  </code></pre>
  
  <p>Can you please help me? The json’ed POST string would be even enough for me :)</p>