api / tv.twelvetone.rjson / PrettyPrinter

PrettyPrinter

class PrettyPrinter

Pretty prints a Json value as RJson.

Types

Options

class Options

Constructors

<init>

PrettyPrinter(options: Options = Options())

Pretty prints a Json value as RJson.

Functions

streamToStream

fun streamToStream(rjsonStream: InputStream): InputStream

Prints the Json or RJson document as RJson using the configured options.

streamToString

fun streamToString(rjsonStream: InputStream): String

Prints the Json or RJson document as RJson using the configured options.

stringToString

fun stringToString(strJson: String): String

Prints the JsonValue as RJson using the configured options.

valueToStream

fun valueToStream(jsonValue: JsonValue): InputStream

Prints the JsonValue as RJson using the configured options.

valueToString

fun valueToString(jsonValue: JsonValue): String

Prints the JsonValue as RJSON using the configured options.