title: send json object with parmeters
body: <pre><code>public void send_Json(String url, JSONObject json,String userTken) {
  
    try {
  
      HttpParams httpParams = new BasicHttpParams();
  
  
      HttpConnectionParams.setConnectionTimeout(httpParams,TIMEOUT_MILLISEC);
      HttpConnectionParams.setSoTimeout(httpParams, TIMEOUT_MILLISEC);
      HttpClient client = new DefaultHttpClient(httpParams);
  
      HttpPost request = new HttpPost(url);
  
      List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(1);
      nameValuePairs.add(new BasicNameValuePair("userToken",  userTken));
  
      request.setEntity(new UrlEncodedFormEntity(nameValuePairs));
  
  
      request.setEntity(new ByteArrayEntity(json.toString().getBytes(
              "UTF8")));
  
  
  
      request.setHeader("json", json.toString());
  
  
  
      HttpResponse response = client.execute(request);
      HttpEntity entity = response.getEntity();
      // If the response does not enclose an entity, there is no need
      if (entity != null) {
          InputStream instream = entity.getContent();
  
          // String result = .convertStreamToString(instream);
          Log.i("Read from server", "xcxcxcx");
          // Toast.makeText(context, "yeah", Toast.LENGTH_LONG).show();
      }
  } catch (Throwable t) {
      Log.i("Read from server", "xcxcxcxcc  cccccccccccc");
      // Toast.makeText(context, "Request failed: " + t.toString(),
      // Toast.LENGTH_LONG).show();
   }
  }   
  </code></pre>
  
  <p>i have written this Code to send json object with my parameters .But  i need to know  how to send it.I already know how to send json object.</p>