Encoder

trait Encoder[A] extends Serializable

A type class that provides a conversion from a value of type A to a Json value.

Companion:
object
Source:
Encoder.scala
trait Serializable
class Object
trait Matchable
class Any
trait Codec[A]
trait AsRoot[A]
trait AsArray[A]
trait AsObject[A]
trait AsRoot[A]
trait AsArray[A]
trait AsObject[A]

Value members

Abstract methods

def apply(a: A): Json
Implicitly added by encodeOption

Convert a value to JSON.

Convert a value to JSON.

Source:
Encoder.scala
def apply(a: A): Json
Implicitly added by encodeSome

Convert a value to JSON.

Convert a value to JSON.

Source:
Encoder.scala
def apply(a: A): Json

Convert a value to JSON.

Convert a value to JSON.

Source:
Encoder.scala
def encodeArray(a: A): Vector[Json]
Implicitly added by encodeChain

Convert a value to a JSON array.

Convert a value to a JSON array.

Source:
Encoder.scala
def encodeArray(a: A): Vector[Json]
Implicitly added by encodeList

Convert a value to a JSON array.

Convert a value to a JSON array.

Source:
Encoder.scala
def encodeArray(a: A): Vector[Json]
Implicitly added by encodeNonEmptyChain

Convert a value to a JSON array.

Convert a value to a JSON array.

Source:
Encoder.scala
def encodeArray(a: A): Vector[Json]
Implicitly added by encodeNonEmptyList

Convert a value to a JSON array.

Convert a value to a JSON array.

Source:
Encoder.scala
def encodeArray(a: A): Vector[Json]
Implicitly added by encodeNonEmptySet

Convert a value to a JSON array.

Convert a value to a JSON array.

Source:
Encoder.scala
def encodeArray(a: A): Vector[Json]
Implicitly added by encodeNonEmptyVector

Convert a value to a JSON array.

Convert a value to a JSON array.

Source:
Encoder.scala
def encodeArray(a: A): Vector[Json]
Implicitly added by encodeSeq

Convert a value to a JSON array.

Convert a value to a JSON array.

Source:
Encoder.scala
def encodeArray(a: A): Vector[Json]
Implicitly added by encodeSet

Convert a value to a JSON array.

Convert a value to a JSON array.

Source:
Encoder.scala
def encodeArray(a: A): Vector[Json]
Implicitly added by encodeTuple1

Convert a value to a JSON array.

Convert a value to a JSON array.

Source:
Encoder.scala
def encodeArray(a: A): Vector[Json]
Implicitly added by encodeVector

Convert a value to a JSON array.

Convert a value to a JSON array.

Source:
Encoder.scala

Concrete methods

final def apply(a: A): Json
Implicitly added by encodeChain
final def apply(a: A): Json
Implicitly added by encodeList
final def apply(a: A): Json
Implicitly added by encodeNonEmptyChain
final def apply(a: A): Json
Implicitly added by encodeNonEmptyList
final def apply(a: A): Json
Implicitly added by encodeNonEmptySet
final def apply(a: A): Json
Implicitly added by encodeNonEmptyVector
final def apply(a: A): Json
Implicitly added by encodeSeq
final def apply(a: A): Json
Implicitly added by encodeSet
final def apply(a: A): Json
Implicitly added by encodeTuple1
final def apply(a: A): Json
Implicitly added by encodeVector
final def contramap[B](f: B => A): Encoder[B]
Implicitly added by encodeOption

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Source:
Encoder.scala
final def contramap[B](f: B => A): Encoder[B]
Implicitly added by encodeSome

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Source:
Encoder.scala
final def contramap[B](f: B => A): Encoder[B]

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Source:
Encoder.scala
final def contramapArray[B](f: B => A): AsArray[B]
Implicitly added by encodeChain

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Source:
Encoder.scala
final def contramapArray[B](f: B => A): AsArray[B]
Implicitly added by encodeList

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Source:
Encoder.scala
final def contramapArray[B](f: B => A): AsArray[B]
Implicitly added by encodeNonEmptyChain

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Source:
Encoder.scala
final def contramapArray[B](f: B => A): AsArray[B]
Implicitly added by encodeNonEmptyList

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Source:
Encoder.scala
final def contramapArray[B](f: B => A): AsArray[B]
Implicitly added by encodeNonEmptySet

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Source:
Encoder.scala
final def contramapArray[B](f: B => A): AsArray[B]
Implicitly added by encodeNonEmptyVector

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Source:
Encoder.scala
final def contramapArray[B](f: B => A): AsArray[B]
Implicitly added by encodeSeq

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Source:
Encoder.scala
final def contramapArray[B](f: B => A): AsArray[B]
Implicitly added by encodeSet

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Source:
Encoder.scala
final def contramapArray[B](f: B => A): AsArray[B]
Implicitly added by encodeTuple1

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Source:
Encoder.scala
final def contramapArray[B](f: B => A): AsArray[B]
Implicitly added by encodeVector

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Create a new AsArray by applying a function to a value of type B before encoding as an A.

Source:
Encoder.scala
final def mapJson(f: Json => Json): Encoder[A]
Implicitly added by encodeOption

Create a new Encoder by applying a function to the output of this one.

Create a new Encoder by applying a function to the output of this one.

Source:
Encoder.scala
final def mapJson(f: Json => Json): Encoder[A]
Implicitly added by encodeSome

Create a new Encoder by applying a function to the output of this one.

Create a new Encoder by applying a function to the output of this one.

Source:
Encoder.scala
final def mapJson(f: Json => Json): Encoder[A]

Create a new Encoder by applying a function to the output of this one.

Create a new Encoder by applying a function to the output of this one.

Source:
Encoder.scala
final def mapJsonArray(f: Vector[Json] => Vector[Json]): AsArray[A]
Implicitly added by encodeChain

Create a new AsArray by applying a function to the output of this one.

Create a new AsArray by applying a function to the output of this one.

Source:
Encoder.scala
final def mapJsonArray(f: Vector[Json] => Vector[Json]): AsArray[A]
Implicitly added by encodeList

Create a new AsArray by applying a function to the output of this one.

Create a new AsArray by applying a function to the output of this one.

Source:
Encoder.scala
final def mapJsonArray(f: Vector[Json] => Vector[Json]): AsArray[A]
Implicitly added by encodeNonEmptyChain

Create a new AsArray by applying a function to the output of this one.

Create a new AsArray by applying a function to the output of this one.

Source:
Encoder.scala
final def mapJsonArray(f: Vector[Json] => Vector[Json]): AsArray[A]
Implicitly added by encodeNonEmptyList

Create a new AsArray by applying a function to the output of this one.

Create a new AsArray by applying a function to the output of this one.

Source:
Encoder.scala
final def mapJsonArray(f: Vector[Json] => Vector[Json]): AsArray[A]
Implicitly added by encodeNonEmptySet

Create a new AsArray by applying a function to the output of this one.

Create a new AsArray by applying a function to the output of this one.

Source:
Encoder.scala
final def mapJsonArray(f: Vector[Json] => Vector[Json]): AsArray[A]
Implicitly added by encodeNonEmptyVector

Create a new AsArray by applying a function to the output of this one.

Create a new AsArray by applying a function to the output of this one.

Source:
Encoder.scala
final def mapJsonArray(f: Vector[Json] => Vector[Json]): AsArray[A]
Implicitly added by encodeSeq

Create a new AsArray by applying a function to the output of this one.

Create a new AsArray by applying a function to the output of this one.

Source:
Encoder.scala
final def mapJsonArray(f: Vector[Json] => Vector[Json]): AsArray[A]
Implicitly added by encodeSet

Create a new AsArray by applying a function to the output of this one.

Create a new AsArray by applying a function to the output of this one.

Source:
Encoder.scala
final def mapJsonArray(f: Vector[Json] => Vector[Json]): AsArray[A]
Implicitly added by encodeTuple1

Create a new AsArray by applying a function to the output of this one.

Create a new AsArray by applying a function to the output of this one.

Source:
Encoder.scala
final def mapJsonArray(f: Vector[Json] => Vector[Json]): AsArray[A]
Implicitly added by encodeVector

Create a new AsArray by applying a function to the output of this one.

Create a new AsArray by applying a function to the output of this one.

Source:
Encoder.scala

Inherited methods

final def contramap[B](f: B => A): Encoder[B]
Implicitly added by encodeChain

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Inherited from:
Encoder
Source:
Encoder.scala
final def contramap[B](f: B => A): Encoder[B]
Implicitly added by encodeList

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Inherited from:
Encoder
Source:
Encoder.scala
final def contramap[B](f: B => A): Encoder[B]
Implicitly added by encodeNonEmptyChain

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Inherited from:
Encoder
Source:
Encoder.scala
final def contramap[B](f: B => A): Encoder[B]
Implicitly added by encodeNonEmptyList

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Inherited from:
Encoder
Source:
Encoder.scala
final def contramap[B](f: B => A): Encoder[B]
Implicitly added by encodeNonEmptySet

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Inherited from:
Encoder
Source:
Encoder.scala
final def contramap[B](f: B => A): Encoder[B]
Implicitly added by encodeNonEmptyVector

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Inherited from:
Encoder
Source:
Encoder.scala
final def contramap[B](f: B => A): Encoder[B]
Implicitly added by encodeSeq

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Inherited from:
Encoder
Source:
Encoder.scala
final def contramap[B](f: B => A): Encoder[B]
Implicitly added by encodeSet

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Inherited from:
Encoder
Source:
Encoder.scala
final def contramap[B](f: B => A): Encoder[B]
Implicitly added by encodeTuple1

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Inherited from:
Encoder
Source:
Encoder.scala
final def contramap[B](f: B => A): Encoder[B]
Implicitly added by encodeVector

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Inherited from:
Encoder
Source:
Encoder.scala
final def mapJson(f: Json => Json): Encoder[A]
Implicitly added by encodeChain

Create a new Encoder by applying a function to the output of this one.

Create a new Encoder by applying a function to the output of this one.

Inherited from:
Encoder
Source:
Encoder.scala
final def mapJson(f: Json => Json): Encoder[A]
Implicitly added by encodeList

Create a new Encoder by applying a function to the output of this one.

Create a new Encoder by applying a function to the output of this one.

Inherited from:
Encoder
Source:
Encoder.scala
final def mapJson(f: Json => Json): Encoder[A]
Implicitly added by encodeNonEmptyChain

Create a new Encoder by applying a function to the output of this one.

Create a new Encoder by applying a function to the output of this one.

Inherited from:
Encoder
Source:
Encoder.scala
final def mapJson(f: Json => Json): Encoder[A]
Implicitly added by encodeNonEmptyList

Create a new Encoder by applying a function to the output of this one.

Create a new Encoder by applying a function to the output of this one.

Inherited from:
Encoder
Source:
Encoder.scala
final def mapJson(f: Json => Json): Encoder[A]
Implicitly added by encodeNonEmptySet

Create a new Encoder by applying a function to the output of this one.

Create a new Encoder by applying a function to the output of this one.

Inherited from:
Encoder
Source:
Encoder.scala
final def mapJson(f: Json => Json): Encoder[A]
Implicitly added by encodeNonEmptyVector

Create a new Encoder by applying a function to the output of this one.

Create a new Encoder by applying a function to the output of this one.

Inherited from:
Encoder
Source:
Encoder.scala
final def mapJson(f: Json => Json): Encoder[A]
Implicitly added by encodeSeq

Create a new Encoder by applying a function to the output of this one.

Create a new Encoder by applying a function to the output of this one.

Inherited from:
Encoder
Source:
Encoder.scala
final def mapJson(f: Json => Json): Encoder[A]
Implicitly added by encodeSet

Create a new Encoder by applying a function to the output of this one.

Create a new Encoder by applying a function to the output of this one.

Inherited from:
Encoder
Source:
Encoder.scala
final def mapJson(f: Json => Json): Encoder[A]
Implicitly added by encodeTuple1

Create a new Encoder by applying a function to the output of this one.

Create a new Encoder by applying a function to the output of this one.

Inherited from:
Encoder
Source:
Encoder.scala
final def mapJson(f: Json => Json): Encoder[A]
Implicitly added by encodeVector

Create a new Encoder by applying a function to the output of this one.

Create a new Encoder by applying a function to the output of this one.

Inherited from:
Encoder
Source:
Encoder.scala