Class/Object

io.circe

Printer

Related Docs: object Printer | package circe

Permalink

final case class Printer(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, sortKeys: Boolean = false) extends Product with Serializable

A pretty-printer for JSON values.

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.

sortKeys

Determines whether the fields should be sorted.

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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Printer(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, sortKeys: Boolean = false)

    Permalink

    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.

    sortKeys

    Determines whether the fields should be sorted.

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val arrayCommaLeft: String

    Permalink

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

  5. val arrayCommaRight: String

    Permalink

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

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

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

    Permalink

    Spaces to insert to left of a colon.

  9. val colonRight: String

    Permalink

    Spaces to insert to right of a colon.

  10. val dropNullValues: Boolean

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef
  12. val escapeNonAscii: Boolean

    Permalink

    Unicode-escape any non-ASCII characters in strings.

  13. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. val indent: String

    Permalink

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

  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. val lbraceLeft: String

    Permalink

    Spaces to insert to left of a left brace.

  18. val lbraceRight: String

    Permalink

    Spaces to insert to right of a left brace.

  19. val lbracketLeft: String

    Permalink

    Spaces to insert to left of a left bracket.

  20. val lbracketRight: String

    Permalink

    Spaces to insert to right of a left bracket.

  21. val lrbracketsEmpty: String

    Permalink

    Spaces to insert for an empty array.

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

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. val objectCommaLeft: String

    Permalink

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

  26. val objectCommaRight: String

    Permalink

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

  27. val predictSize: Boolean

    Permalink

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

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

    Permalink

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

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

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

    Permalink
  31. val rbraceLeft: String

    Permalink

    Spaces to insert to left of a right brace.

  32. val rbraceRight: String

    Permalink

    Spaces to insert to right of a right brace.

  33. val rbracketLeft: String

    Permalink

    Spaces to insert to left of a right bracket.

  34. val rbracketRight: String

    Permalink

    Spaces to insert to right of a right bracket.

  35. val reuseWriters: Boolean

    Permalink

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

  36. val sortKeys: Boolean

    Permalink

    Determines whether the fields should be sorted.

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

    Permalink
    Definition Classes
    AnyRef
  38. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def withSortedKeys: Printer

    Permalink

    The same pretty-printer configuration that outputs fields in sorted order.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped