title: How to send JSON request to service with parameters in Objective-C
body: <p>I'm creating a iPhone app, and im trying to figure out how to create a JSON request to the webservice that contains parameters. In Java this would look like this</p>
  
  <pre><code>HashMap&lt;String, String&gt; headers = new HashMap&lt;String, String&gt;();
  
  JSONObject json = new JSONObject();
  
              json.put("nid", null);
              json.put("vocab", null);
              json.put("inturl", testoverview);
              json.put("mail", username); // something@gmail.com
              json.put("md5pw", password); // donkeykong
  
          headers.put("X-FBR-App", json.toString());
  </code></pre>
  
  <p>The header has to contain a JSON object and "X-FBR-App" before the service recognizes the request. How would this be implemented in Objective-C ?</p>