title: Get json response in Volley
body: <p>I have the following json response</p>
  
  <pre><code>{"multicast_id":8XXXD,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:14XX"}]}
  </code></pre>
  
  <p>I want to check if <strong>failure = 0</strong> or not in java. Following is my Volley code.</p>
  
  <pre><code>StringRequest stringRequest = new StringRequest(Request.Method.POST, CONN_URL.send_single_push,
              new Response.Listener&lt;String&gt;() {
                  @Override
                  public void onResponse(String response) {
                      Toast.makeText(getActivity(), response, Toast.LENGTH_LONG).show();
                  }
              },
              new Response.ErrorListener() {
                  @Override
                  public void onErrorResponse(VolleyError error) {
  
                  }
              }) {
          @Override
          protected Map&lt;String, String&gt; getParams() throws AuthFailureError {
              Map&lt;String, String&gt; params = new HashMap&lt;&gt;();
              params.put("title", title);
              params.put("message", message);
  
              if (!TextUtils.isEmpty(image))
                  params.put("image", image);
  
              params.put("course", course);
              return params;
          }
      };
  
      MySingleton.getInstance(getActivity()).addToRequestQueue(stringRequest);
  </code></pre>
  
  <p>I am new to android. Please help me solve this problem.</p>