openrtb-core/src/main/java/com/google/openrtb/json/OpenRtbNativeJsonWriter.java
public void writeNativeResponse(NativeResponse resp, OutputStream os) throws IOException {
    JsonGenerator gen = factory().getJsonFactory().createGenerator(os);
    writeNativeResponse(resp, gen);
  }
public void writeNativeResponse(NativeResponse resp, OutputStream os) throws IOException {
    JsonGenerator gen = factory().getJsonFactory().createGenerator(os);
    writeNativeResponse(resp, gen);
  }
Serializes a {@link NativeResponse} to JSON, streamed to a {@link OutputStream}.

@see JsonFactory#createGenerator(OutputStream)