A pretty-printer for JSON values.
Attributes
- arrayCommaLeft
Spaces to insert to left of a comma in an array.
- arrayCommaRight
Spaces to insert to right of a comma in an array.
- colonLeft
Spaces to insert to left of a colon.
- colonRight
Spaces to insert to right of a colon.
- dropNullValues
Determines if object fields with values of null are dropped from the output.
- escapeNonAscii
Unicode-escape any non-ASCII characters in strings.
- 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.
- lbracketLeft
Spaces to insert to left of a left bracket.
- lbracketRight
Spaces to insert to right of a left bracket.
- lrbracketsEmpty
Spaces to insert for an empty 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.
- predictSize
Uses an adaptive size predictor to avoid grow-and-copy steps while printing into a binary output.
- rbraceLeft
Spaces to insert to left of a right brace.
- rbraceRight
Spaces to insert to right of a right brace.
- rbracketLeft
Spaces to insert to left of a right bracket.
- rbracketRight
Spaces to insert to right of a right bracket.
- reuseWriters
Determines whether the printer will reuse Appendables via thread-local storage.
- sortKeys
Determines whether the fields should be sorted.
- Companion:
- object
- Source:
- Printer.scala
- Graph
- Supertypes