DecoderByteArrayOps

zio.json.`package`.DecoderByteArrayOps
final implicit class DecoderByteArrayOps(json: Array[Byte]) extends AnyVal

Attributes

Source
package.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def fromJson[A](implicit decoder: JsonDecoder[A]): Either[String, A]

Attempts to decode the UTF-8 encoded bytes as an A, without copying them into a String first.

Attempts to decode the UTF-8 encoded bytes as an A, without copying them into a String first.

Errors are reported exactly as for the CharSequence variant.

Attributes

Source
package.scala