openrtb-core/src/main/java/com/google/openrtb/json/OpenRtbNativeJsonWriter.java
public void writeNativeRequest(NativeRequest req, Writer writer) throws IOException {
    JsonGenerator gen = factory().getJsonFactory().createGenerator(writer);
    writeNativeRequest(req, gen);
  }
public void writeNativeRequest(NativeRequest req, Writer writer) throws IOException {
    JsonGenerator gen = factory().getJsonFactory().createGenerator(writer);
    writeNativeRequest(req, gen);
  }
Serializes a {@link NativeRequest} to JSON, streamed into an {@link Writer}.

@see JsonFactory#createGenerator(Writer)