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

@see JsonFactory#createGenerator(Writer)
Serializes a { @link NativeResponse } to JSON streamed to a { @link Writer } .