trait JsonEncoder[A] extends JsonEncoderPlatformSpecific[A]

Self Type
JsonEncoder[A]
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsonEncoder
  2. JsonEncoderPlatformSpecific
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def unsafeEncode(a: A, indent: Option[Int], out: Write): Unit

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. final def both[B](that: => JsonEncoder[B]): JsonEncoder[(A, B)]

    Returns a new encoder that is capable of encoding a tuple containing the values of this encoder and the specified encoder.

  6. final def bothWith[B, C](that: => JsonEncoder[B])(f: (C) => (A, B)): JsonEncoder[C]

    Returns a new encoder that is capable of encoding a user-defined value, which is create from a tuple of the values of this encoder and the specified encoder, from the specified user- defined function.

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def contramap[B](f: (B) => A): JsonEncoder[B]

    Returns a new encoder, with a new input type, which can be transformed to the old input type by the specified user-defined function.

  9. final def either[B](that: => JsonEncoder[B]): JsonEncoder[Either[A, B]]

    Returns a new encoder that can accepts an Either[A, B] to either, and uses either this encoder or the specified encoder to encode the two different types of values.

  10. final def eitherWith[B, C](that: => JsonEncoder[B])(f: (C) => Either[A, B]): JsonEncoder[C]

    Returns a new encoder with a new input type, which can be transformed to either the input type of this encoder, or the input type of the specified encoder, using the user-defined transformation function.

  11. final def encodeJson(a: A, indent: Option[Int]): CharSequence

    Encodes the specified value into a JSON string, with the specified indentation level.

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def isNothing(a: A): Boolean

    This default may be overriden when this value may be missing within a JSON object and still be encoded.

    This default may be overriden when this value may be missing within a JSON object and still be encoded.

    Annotations
    @nowarn()
  19. final def narrow[B <: A]: JsonEncoder[B]

    Returns this encoder but narrowed to the its given sub-type

  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toJsonAST(a: A): Either[String, Json]

    Converts a value to a Json AST

    Converts a value to a Json AST

    The default implementation encodes the value to a Json byte stream and uses decode to parse that back to an AST. Override to provide a more performant implementation.

  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. def xmap[B](f: (A) => B, g: (B) => A): JsonEncoder[B]
    Annotations
    @nowarn()

Inherited from JsonEncoderPlatformSpecific[A]

Inherited from AnyRef

Inherited from Any

Ungrouped