PrettyParams

case class PrettyParams(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, preserveOrder: Boolean, dropNullKeys: Boolean)

Parameters for pretty-printing a JSON value.

Value parameters:
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.

dropNullKeys

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.

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.

preserveOrder

Determines if field ordering should be preserved.

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.

Companion:
object
Source:
PrettyParams.scala
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

final def lpretty(j: Json): Vector[Char]

Returns a Vector[Char] representation of a pretty-printed JSON value.

Returns a Vector[Char] representation of a pretty-printed JSON value.

Source:
PrettyParams.scala
final def pretty(j: Json): String

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

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

Source:
PrettyParams.scala

Inherited methods

Inherited from:
Product