io.circe

Printer

final case class Printer(preserveOrder: Boolean, dropNullValues: Boolean, indent: String, lbraceLeft: String = "", lbraceRight: String = "", rbraceLeft: String = "", rbraceRight: String = "", lbracketLeft: String = "", lbracketRight: String = "", rbracketLeft: String = "", rbracketRight: String = "", lrbracketsEmpty: String = "", arrayCommaLeft: String = "", arrayCommaRight: String = "", objectCommaLeft: String = "", objectCommaRight: String = "", colonLeft: String = "", colonRight: String = "", reuseWriters: Boolean = false, predictSize: Boolean = false, escapeNonAscii: Boolean = false) extends Product with Serializable

A pretty-printer for JSON values.

preserveOrder

Determines if field ordering should be preserved.

dropNullValues

Determines if object fields with values of null are dropped from the output.

indent

The indentation to use if any format strings contain a new line.

lbraceLeft

Spaces to insert to left of a left brace.

lbraceRight

Spaces to insert to right of a left brace.

rbraceLeft

Spaces to insert to left of a right brace.

rbraceRight

Spaces to insert to right of a right brace.

lbracketLeft

Spaces to insert to left of a left bracket.

lbracketRight

Spaces to insert to right of a left bracket.

rbracketLeft

Spaces to insert to left of a right bracket.

rbracketRight

Spaces to insert to right of a right bracket.

lrbracketsEmpty

Spaces to insert for an empty array.

arrayCommaLeft

Spaces to insert to left of a comma in an array.

arrayCommaRight

Spaces to insert to right of a comma in an array.

objectCommaLeft

Spaces to insert to left of a comma in an object.

objectCommaRight

Spaces to insert to right of a comma in an object.

colonLeft

Spaces to insert to left of a colon.

colonRight

Spaces to insert to right of a colon.

reuseWriters

Determines whether the printer will reuse Appendables via thread-local storage.

predictSize

Uses an adaptive size predictor to avoid grow-and-copy steps while printing into a binary output.

escapeNonAscii

Unicode-escape any non-ASCII characters in strings.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Printer
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Printer(preserveOrder: Boolean, dropNullValues: Boolean, indent: String, lbraceLeft: String = "", lbraceRight: String = "", rbraceLeft: String = "", rbraceRight: String = "", lbracketLeft: String = "", lbracketRight: String = "", rbracketLeft: String = "", rbracketRight: String = "", lrbracketsEmpty: String = "", arrayCommaLeft: String = "", arrayCommaRight: String = "", objectCommaLeft: String = "", objectCommaRight: String = "", colonLeft: String = "", colonRight: String = "", reuseWriters: Boolean = false, predictSize: Boolean = false, escapeNonAscii: Boolean = false)

    preserveOrder

    Determines if field ordering should be preserved.

    dropNullValues

    Determines if object fields with values of null are dropped from the output.

    indent

    The indentation to use if any format strings contain a new line.

    lbraceLeft

    Spaces to insert to left of a left brace.

    lbraceRight

    Spaces to insert to right of a left brace.

    rbraceLeft

    Spaces to insert to left of a right brace.

    rbraceRight

    Spaces to insert to right of a right brace.

    lbracketLeft

    Spaces to insert to left of a left bracket.

    lbracketRight

    Spaces to insert to right of a left bracket.

    rbracketLeft

    Spaces to insert to left of a right bracket.

    rbracketRight

    Spaces to insert to right of a right bracket.

    lrbracketsEmpty

    Spaces to insert for an empty array.

    arrayCommaLeft

    Spaces to insert to left of a comma in an array.

    arrayCommaRight

    Spaces to insert to right of a comma in an array.

    objectCommaLeft

    Spaces to insert to left of a comma in an object.

    objectCommaRight

    Spaces to insert to right of a comma in an object.

    colonLeft

    Spaces to insert to left of a colon.

    colonRight

    Spaces to insert to right of a colon.

    reuseWriters

    Determines whether the printer will reuse Appendables via thread-local storage.

    predictSize

    Uses an adaptive size predictor to avoid grow-and-copy steps while printing into a binary output.

    escapeNonAscii

    Unicode-escape any non-ASCII characters in strings.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val arrayCommaLeft: String

    Spaces to insert to left of a comma in an array.

  7. val arrayCommaRight: String

    Spaces to insert to right of a comma in an array.

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val colonLeft: String

    Spaces to insert to left of a colon.

  11. val colonRight: String

    Spaces to insert to right of a colon.

  12. val dropNullValues: Boolean

    Determines if object fields with values of null are dropped from the output.

  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. val escapeNonAscii: Boolean

    Unicode-escape any non-ASCII characters in strings.

  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. val indent: String

    The indentation to use if any format strings contain a new line.

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. val lbraceLeft: String

    Spaces to insert to left of a left brace.

  20. val lbraceRight: String

    Spaces to insert to right of a left brace.

  21. val lbracketLeft: String

    Spaces to insert to left of a left bracket.

  22. val lbracketRight: String

    Spaces to insert to right of a left bracket.

  23. val lrbracketsEmpty: String

    Spaces to insert for an empty array.

  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. val objectCommaLeft: String

    Spaces to insert to left of a comma in an object.

  28. val objectCommaRight: String

    Spaces to insert to right of a comma in an object.

  29. val predictSize: Boolean

    Uses an adaptive size predictor to avoid grow-and-copy steps while printing into a binary output.

  30. val preserveOrder: Boolean

    Determines if field ordering should be preserved.

  31. final def pretty(json: Json): String

    Returns a string representation of a pretty-printed JSON value.

  32. final def prettyByteBuffer(json: Json): ByteBuffer

  33. final def prettyByteBuffer(json: Json, cs: Charset): ByteBuffer

  34. val rbraceLeft: String

    Spaces to insert to left of a right brace.

  35. val rbraceRight: String

    Spaces to insert to right of a right brace.

  36. val rbracketLeft: String

    Spaces to insert to left of a right bracket.

  37. val rbracketRight: String

    Spaces to insert to right of a right bracket.

  38. val reuseWriters: Boolean

    Determines whether the printer will reuse Appendables via thread-local storage.

  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  40. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped