render

fs2.data.json.`package`.render
object render

Json Token stream pipes to render Json values.

Attributes

Source
package.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
render.type

Members list

Value members

Concrete methods

def compact[F[_]]: (F, Token) => String

Renders a compact representation of the Json token stream.

Renders a compact representation of the Json token stream.

Chunks can be concatenated to render all values in the stream, separated by new lines.

You can use this to write the Json stream to a file.

Attributes

Source
package.scala
def prettyPrint[F[_]](width: Int, indent: Int)(implicit renderable: Renderable[Token]): (F, Token) => String

Renders a pretty-printed representation of the token stream with the given indentation size and page width.

Renders a pretty-printed representation of the token stream with the given indentation size and page width.

Chunks can be concatenated to render all values in the stream, separated by new lines.

You can use this to write the Json stream to a file.

You can configure how the stream is rendered by providing an instance of Renderable in scope. A default one is automatically provided if you do not need specific formatting.

Attributes

Source
package.scala

Deprecated methods

def pretty[F[_]](indent: String): (F, Token) => String

Renders a pretty-printed representation of the token stream with the given indentation size.

Renders a pretty-printed representation of the token stream with the given indentation size.

Chunks can be concatenated to render all values in the stream, separated by new lines.

You can use this to write the Json stream to a file.

Attributes

Deprecated
[Since version fs2-data 1.11.0] Consider using `fs2.data.json.render.prettyPrint` instead.
Source
package.scala