code: @Override
      protected JSONObject convertToObject(HTTPResponse httpResponse)
      {
          //get response text
          JSONObject jsonObject=null;
          String content=httpResponse.getContent();
          if(content!=null)
          {
              try
              {
                  //convert to JSON
                  jsonObject=new JSONObject(content);
              }
              catch(JSONException exception)
              {
                  throw new FaxException("Unable to parse HTTP response text as JSON.",exception);
              }
          }
          
          return jsonObject;
      }
docs: This function converts the HTTP response content to the specific object.
  
  @param   httpResponse
  The HTTP response
  @return  The object