title: Ion POST as url parameters and not JSON body Android
body: <p>I want to POST to my server API using parameters instead of JSON body.</p>
  
  <p>I can implement this:</p>
  
  <pre><code>JsonObject json = new JsonObject();
                  json.addProperty("u_id", "XXX");
                  json.addProperty("emp_id", "XXX");
                  json.addProperty("lat", Double.toString(lat));
                  json.addProperty("lon", Double.toString(lon));
                  json.addProperty("paper", "5");
                  json.addProperty("plastic", "10");
                  json.addProperty("mode", "cash");
                  json.addProperty("status", "init");
  
                  Ion.with(getApplicationContext())
                          .load(getString(R.string.url)+"/transaction")
                          .setJsonObjectBody(json)
                          .asJsonObject()
                          .setCallback(new FutureCallback&lt;JsonObject&gt;() {
                              @Override
                              public void onCompleted(Exception e, JsonObject result) {
                                  if (e != null) {
                                      Toast.makeText(getBaseContext(), "Data : " + e.getStackTrace(), Toast.LENGTH_LONG).show();
                                  } else {
                                      runOnUiThread(new Runnable() {
                                          @Override
                                          public void run() {
                                              progress.dismiss();
                                          }
                                      });
                                      Toast.makeText(getBaseContext(), "Pickup added successfully! We will contact you soon.", Toast.LENGTH_LONG).show();
                                  }
                              }
                          });
  </code></pre>
  
  <p>But I want to achieve the same by POST ing to <code>http://someserver.com/transaction/&lt;u_id&gt;/&lt;emp_id&gt;/22.56/88.45/5/10/cash/init</code> where my server is ready to handle the parameters.</p>
  
  <p>Anyway, Koushik Dutta (@koush) the library is wonderful and asynchronous. Loved it.</p>