title: How to http post two different json objects in single entity?
body: <pre><code>@Override
  protected Void doInBackground(Void... arg0) {
      HttpClient httpClient = new DefaultHttpClient();
      // Creating HTTP Post
      HttpPost httpPost = new HttpPost("www.somewebsite.com");
      httpPost.setHeader("Content-type", "application/json");
  
      try {
          httpPost.setEntity(new StringEntity(getJSONString(), "UTF-8"));
      } catch (UnsupportedEncodingException e1) {
          // TODO Auto-generated catch block
          e1.printStackTrace();
      }
  
      // Making HTTP Request
      try {
          HttpResponse response = httpClient.execute(httpPost);
          System.out.println(response.getStatusLine().getStatusCode());
      } catch (ClientProtocolException e) {
          // writing exception to log
          e.printStackTrace();
      } catch (IOException e) {
          // writing exception to log
          e.printStackTrace();
  
      }
  
  }
  </code></pre>
  
  <p>This works fine for me. However I want to send other <code>jsonobject</code> with business data to server. How can I do that?</p>