title: How to get Android Volley to parse my Json response to a POJO in the worker thread
body: <p>I currently have the following code:</p>
  
  <pre><code>JsonObjectRequest jsObjRequest = new JsonObjectRequest(
                  Request.Method.GET, Network.getFullUrl("/Account/Login"),
                  null, new Response.Listener&lt;JSONObject&gt;() {
                      @Override
                      public void onResponse(JSONObject response) {
                          showProgress(false);
                          Gson gson = new Gson();
                          LoginResponseViewModel model = gson.fromJson(
                                  response, LoginResponseViewModel.class);
  
                          if (model.Status) {
                              Intent intent = new Intent(LoginActivity.this,
                                      MainMenuActivity.class);
                              startActivity(intent);
                              finish();
                          } else {
                              mPasswordView
                                      .setError(getString(R.string.error_incorrect_password));
                              mPasswordView.requestFocus();
                          }
                      }
                  }, new Response.ErrorListener() {
  
                      @Override
                      public void onErrorResponse(VolleyError error) {                            
                          showProgress(false);
                          //TODO: show error
                      }
                  });
          Network.getInstance(this).addToRequestQueue(jsObjRequest);
  </code></pre>
  
  <p>How can I get Volley to do the gson.fromJson in the worker thread and then just pass me the correct object I want?</p>
  
  <p>This was it will help reduce load on the UI / Main thread and then simplify code as well.</p>
  
  <p>Can I use the default <code>JsonObjectRequest</code> or am I going to have to create a custom request type? </p>