Interface JsonStream.Builder

Enclosing interface:
JsonStream

public static interface JsonStream.Builder
Used to build JsonStream with custom settings.
  • Method Details

    • serializeNulls

      JsonStream.Builder serializeNulls(boolean serializeNulls)
      Set to true to serialize nulls. Defaults to false.
    • serializeEmpty

      JsonStream.Builder serializeEmpty(boolean serializeEmpty)
      Set to true to serialize empty collections. Defaults to false.
    • failOnUnknown

      JsonStream.Builder failOnUnknown(boolean failOnUnknown)
      Set to true to fail on unknown properties. Defaults to false.
    • bufferRecycling

      JsonStream.Builder bufferRecycling(BufferRecycleStrategy strategy)
      Determines how byte buffers are recycled
    • build

      JsonStream build()
      Build and return the JsonStream.