JsonApi

sealed trait JsonApi[T, Config <: EncodingConfig] extends Api[Config]
trait Api[Config]
trait CommonApi[Config]
class Object
trait Matchable
class Any

Value members

Abstract methods

@inline
def toUtf8String: String

Short-cut for encoding to a plain byte array, throwing an exception in case of any failures, and then immediately UTF-8 decoding into a String.

Short-cut for encoding to a plain byte array, throwing an exception in case of any failures, and then immediately UTF-8 decoding into a String.

Inherited methods

def to[R](target: R)(implicit op: ToValueProvider[R]): Sealed[Out, R]

Encodes an instance of T to the given target using the configured options.

Encodes an instance of T to the given target using the configured options.

Inherited from:
Api
def to[R](implicit op: ToTypeProvider[R]): Sealed[Out, R]

Encodes an instance of T to the given type R type using the configured options.

Encodes an instance of T to the given type R type using the configured options.

Inherited from:
Api
def toByteArray: Array[Byte]

Short-cut for encoding to a plain byte array, throwing an exception in case of any failures.

Short-cut for encoding to a plain byte array, throwing an exception in case of any failures.

Inherited from:
Api
def toByteArrayEither: Either[Error[Output], Array[Byte]]

Short-cut for encoding to a plain byte array, wrapped in an Either for error handling.

Short-cut for encoding to a plain byte array, wrapped in an Either for error handling.

NOTE: You can get a slightly more narrowly typed error by using .to[Array[Byte]].resultEither instead!

Inherited from:
Api
def toByteArrayTry: Try[Array[Byte]]

Short-cut for encoding to a plain byte array, wrapped in a Try for error handling.

Short-cut for encoding to a plain byte array, wrapped in a Try for error handling.

Inherited from:
Api
def toByteBuffer: ByteBuffer

Short-cut for encoding to a ByteBuffer, throwing an exception in case of any failures.

Short-cut for encoding to a ByteBuffer, throwing an exception in case of any failures.

Inherited from:
Api
def toByteBufferEither: Either[Error[Output], ByteBuffer]

Short-cut for encoding to a ByteBuffer, wrapped in an Either for error handling.

Short-cut for encoding to a ByteBuffer, wrapped in an Either for error handling.

NOTE: You can get a slightly more narrowly typed error by using .to[ByteBuffer].resultEither instead!

Inherited from:
Api
def toByteBufferTry: Try[ByteBuffer]

Short-cut for encoding to a ByteBuffer, wrapped in a Try for error handling.

Short-cut for encoding to a ByteBuffer, wrapped in a Try for error handling.

Inherited from:
Api
def withConfig(config: Config): JsonApi[T, Config]

Configures the Config for this encoding/decoding run.

Configures the Config for this encoding/decoding run.

Inherited from:
CommonApi
def withLogging(createLogger: LevelInfo => Logger): JsonApi[T, Config]

Enables logging of the encoding/decoding progress to the given Logging.Logger.

Enables logging of the encoding/decoding progress to the given Logging.Logger.

Inherited from:
CommonApi
def withPrintLogging(maxShownByteArrayPrefixLen: Int, maxShownStringPrefixLen: Int, maxShownArrayElems: Int, maxShownMapEntries: Int, initialGutterWidth: Int, renderLevelCount: Boolean, renderEndOfInput: Boolean, renderCommas: Boolean, indentation: String, mapKeySep: String): JsonApi[T, Config]

Enables logging of the encoding/decoding progress to the console. Each data item that is written/received by the application is pretty printed to the console on its own line.

Enables logging of the encoding/decoding progress to the console. Each data item that is written/received by the application is pretty printed to the console on its own line.

Inherited from:
CommonApi
def withStringLogging(stringBuilder: StringBuilder, maxShownByteArrayPrefixLen: Int, maxShownStringPrefixLen: Int, maxShownArrayElems: Int, maxShownMapEntries: Int, initialGutterWidth: Int, renderLevelCount: Boolean, renderEndOfInput: Boolean, renderCommas: Boolean, indentation: String, mapKeySep: String, lineSep: String, mapValueOnNewLine: Boolean): JsonApi[T, Config]

Enables logging of the encoding/decoding progress to the given JStringBuilder.

Enables logging of the encoding/decoding progress to the given JStringBuilder.

Inherited from:
CommonApi
def withTransformerAdded(transformer: () => Config): JsonApi[T, Config]

Allows for injecting additional custom logic into the encoding/decoding process. Used, for example, for on-the-side Logging.

Allows for injecting additional custom logic into the encoding/decoding process. Used, for example, for on-the-side Logging.

Inherited from:
CommonApi