docs: private JSONObject getErrorObject(ValidationResult vr) {
          JSONObject error = new JSONObject();
          try {
              error.put("c", vr.getErrorCode());
              error.put("d", vr.getErrorDesc());
          } catch (JSONException e) {
              // Won't reach here
          }
          return error;
      }