code: public void write(JsonGenerator jsonGenerator) throws IOException {
      // We neither need the list of RequestedNodes, nodes, nor excludedHosts,
      // because we can reconstruct them from the request object
      jsonGenerator.writeStartObject();
      jsonGenerator.writeObjectField("request", request);
      jsonGenerator.writeEndObject();
    }
docs: This method writes the ResourceRequestInfo instance to disk
  @param jsonGenerator The JsonGenerator instance being used to write the
  JSON to disk
  @throws IOException