title: How do I post a JSON request in Android
body: <p>I am sending the following JSON request;</p>
  
  <pre><code> List&lt;NameValuePair&gt; params = new ArrayList&lt;NameValuePair&gt;();
          params.add(new BasicNameValuePair("email",username));
          params.add(new BasicNameValuePair("password",pass));
  JSONObject json = jParser.makeHttpRequest(url_login, "POST", params);
  </code></pre>
  
  <p>It generates the following string <code>email=xxx, password=xxxx</code>, but I want the string generated to be in JSON format (i.e <code>"email":"xxx","password":"xxxx"</code>). How can I get it to do this?</p>