title: Volley Post method for json object
body: <pre><code>data={
      "request": {
         "type": "event_and_offer",
         "devicetype": "A"
      },
      "requestinfo": {
         "value": "offer"
        }
  }
  </code></pre>
  
  <p>how to post this request from volley plz help</p>
  
  <pre><code>            JsonObjectRequest jsonObjReq = new JsonObjectRequest(
              Request.Method.POST,url, null   ,
              new Response.Listener&lt;JSONObject&gt;() {
  
  
  
  
                  @Override
                  public void onResponse(JSONObject response) {
                      Log.d(TAG, response.toString());
  
                      msgResponse.setText(response.toString());
                      hideProgressDialog();
                  }
              }, new Response.ErrorListener() {
  
                  @Override
                  public void onErrorResponse(VolleyError error) {
                      VolleyLog.d(TAG, "Error: " + error.getMessage());
                      hideProgressDialog();
                  }
              }) {
  
          /**
           * Passing some request headers
           * */
          @Override
          public Map&lt;String, String&gt; getHeaders() throws AuthFailureError {
              HashMap&lt;String, String&gt; headers = new HashMap&lt;String, String&gt;();
              headers.put("Content-Type", "application/x-www-form-urlencoded");
              return headers;
          }
  </code></pre>
  
  <p>js is reffer to my jsson object ...... i make my jsson like this.....</p>
  
  <pre><code>JSONObject jsonobject_one = new JSONObject();
      try {
          jsonobject_one.put("type", "event_and_offer");
          jsonobject_one.put("devicetype", "I");
  
          JSONObject jsonobject_TWO = new JSONObject();
          jsonobject_TWO.put("value", "event");
          jsonobject = new JSONObject();
  
          jsonobject.put("requestinfo", jsonobject_TWO);
          jsonobject.put("request", jsonobject_one);
  
          js = new JSONObject();
          js.put("data", jsonobject.toString());
          Log.e("created jsson", "" + js);
  </code></pre>
  
  <p>But it Not response the value what to do plzz help</p>