JsonDecoderPlatformSpecific

zio.json.JsonDecoderPlatformSpecific

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait JsonDecoder[A]
Self type

Members list

Value members

Concrete methods

final def decodeJsonPipeline(delimiter: JsonStreamDelimiter): ZPipeline[Any, Throwable, Char, A]
final def decodeJsonStream[R](stream: ZStream[R, Throwable, Char]): ZIO[R, Throwable, A]

Attempts to decode a stream of characters into a single value of type A, but may fail with a human-readable exception if the stream does not encode a value of this type.

Attempts to decode a stream of characters into a single value of type A, but may fail with a human-readable exception if the stream does not encode a value of this type.

Note: This method may not consume the full string.

Attributes

See also
final def decodeJsonStreamInput[R](stream: ZStream[R, Throwable, Byte], charset: Charset): ZIO[R, Throwable, A]

Attempts to decode a stream of bytes using the user supplied Charset into a single value of type A, but may fail with a human-readable exception if the stream does not encode a value of this type.

Attempts to decode a stream of bytes using the user supplied Charset into a single value of type A, but may fail with a human-readable exception if the stream does not encode a value of this type.

Note: This method may not consume the full string.

Attributes

See also

decodeJsonStream For a Char stream variant