FieldEncoder

jzon.FieldEncoder
See theFieldEncoder companion object
trait FieldEncoder[A]

When encoding a JSON Object, we only allow keys that implement this interface.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Abstract methods

def unsafeEncodeField(in: A): String

Concrete methods

final def contramap[B](f: B => A): FieldEncoder[B]
final def narrow[B <: A]: FieldEncoder[B]
final def xmap[B](f: A => B, g: B => A): FieldEncoder[B]