code: public static boolean checkResponseStatus(JSONObject jsonResponse) {
  
          if (jsonResponse != null) {
  
              if (jsonResponse.getBoolean("ok")) {
  
                  return true;
              } else {
  
                  System.err.println("The API returned the following error: " + jsonResponse.getString("description"));
              }
          } else {
  
              System.err.println("JSON Response was null, something went wrong...");
          }
  
          return false;
      }
docs: This does generic processing of processed JSON objects to ensure that the API returned ok: true
  
  @param jsonResponse The JSONObject that you want to check
  
  @return True if the JSONObject contained ok: true, otherwise False