Sending json object via http post method in android
<blockquote>
  <p>its NOT DUPLICATE.Link that has been provided is an OLD one."http client" has been removed in api23</p>
</blockquote>

<p>I want to send json object:</p>

<pre><code>{"emailId":"ashish.bhatt@mobimedia.in","address":"Naya bans","city":"Noida","pincode":"201301","account_number":"91123546374208","bank_name":"Axis Bank","branch_name":"91123546374208","ifsc_code":"UTI0000879"}
</code></pre>

<p>to url:</p>

<blockquote>
  <p><a href="http://10digimr.mobimedia.in/api/mobile_retailer/update_profile" rel="nofollow">http://10digimr.mobimedia.in/api/mobile_retailer/update_profile</a>
  How do i do it?
  via post method?</p>
</blockquote>

<p>METHOD:</p>

<pre><code> POST /api/mobile_retailer/update_profile
</code></pre>

<p>MANDATORY KEY:</p>

<pre><code>{"emailId","address"}
</code></pre>

<p>REQUEST JSON: </p>

<pre><code>{"emailId":"ashish.bhatt@mobimedia.in","address":"Naya bans","city":"Noida","pincode":"201301","account_number":"91123546374208","bank_name":"Axis Bank","branch_name":"91123546374208","ifsc_code":"UTI0000879"}
</code></pre>

<p>RESPONSE: </p>

<pre><code>{"message":"Mail Send","data":true,"status":200}
</code></pre>