Encoder

io.circe.Encoder
See theEncoder companion object
trait Encoder[A] extends Serializable

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

Attributes

Companion:
object
Source:
Encoder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Codec[A]
trait AsRoot[A]
trait AsArray[A]
trait AsObject[A]
trait AsRoot[A]
trait AsArray[A]
trait AsObject[A]
Self type

Members list

Concise view

Value members

Abstract methods

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

Convert a value to JSON.

Convert a value to JSON.

Attributes

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

Convert a value to JSON.

Convert a value to JSON.

Attributes

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

Convert a value to JSON.

Convert a value to JSON.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

Source:
Encoder.scala

Concrete methods

final def apply(a: A): Json
Implicitly added by encodeChain

Convert a value to JSON.

Convert a value to JSON.

Attributes

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

Convert a value to JSON.

Convert a value to JSON.

Attributes

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

Convert a value to JSON.

Convert a value to JSON.

Attributes

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

Convert a value to JSON.

Convert a value to JSON.

Attributes

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

Convert a value to JSON.

Convert a value to JSON.

Attributes

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

Convert a value to JSON.

Convert a value to JSON.

Attributes

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

Convert a value to JSON.

Convert a value to JSON.

Attributes

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

Convert a value to JSON.

Convert a value to JSON.

Attributes

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

Convert a value to JSON.

Convert a value to JSON.

Attributes

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

Convert a value to JSON.

Convert a value to JSON.

Attributes

Source:
Encoder.scala
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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

Inherited from:
Encoder
Source:
Encoder.scala