CodegenProtocol

besom.internal.CodegenProtocol
object CodegenProtocol extends DefaultJsonProtocol

Used by the codegen module in the generated code.

Attributes

Graph
Supertypes
trait DefaultJsonProtocol
trait JsonProtocol
trait AdditionalFormats
trait ProductFormats
trait CollectionFormats
trait StandardFormats
trait BasicFormats
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited classlikes

object BigDecimalJsonFormat extends JsonFormat[BigDecimal]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[BigDecimal]
trait JsonWriter[BigDecimal]
trait JsonReader[BigDecimal]
class Object
trait Matchable
class Any
Show all
object BigIntJsonFormat extends JsonFormat[BigInt]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[BigInt]
trait JsonWriter[BigInt]
trait JsonReader[BigInt]
class Object
trait Matchable
class Any
Show all
object BooleanJsonFormat extends JsonFormat[Boolean]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Boolean]
trait JsonWriter[Boolean]
trait JsonReader[Boolean]
class Object
trait Matchable
class Any
Show all
object ByteJsonFormat extends JsonFormat[Byte]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Byte]
trait JsonWriter[Byte]
trait JsonReader[Byte]
class Object
trait Matchable
class Any
Show all
object CharJsonFormat extends JsonFormat[Char]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Char]
trait JsonWriter[Char]
trait JsonReader[Char]
class Object
trait Matchable
class Any
Show all
object DoubleJsonFormat extends JsonFormat[Double]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Double]
trait JsonWriter[Double]
trait JsonReader[Double]
class Object
trait Matchable
class Any
Show all
object FloatJsonFormat extends JsonFormat[Float]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Float]
trait JsonWriter[Float]
trait JsonReader[Float]
class Object
trait Matchable
class Any
Show all
object IntJsonFormat extends JsonFormat[Int]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Int]
trait JsonWriter[Int]
trait JsonReader[Int]
class Object
trait Matchable
class Any
Show all
object JsValueFormat extends JsonFormat[JsValue]

Attributes

Inherited from:
AdditionalFormats
Supertypes
trait JsonFormat[JsValue]
trait JsonWriter[JsValue]
trait JsonReader[JsValue]
class Object
trait Matchable
class Any
Show all
object LongJsonFormat extends JsonFormat[Long]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Long]
trait JsonWriter[Long]
trait JsonReader[Long]
class Object
trait Matchable
class Any
Show all
class OptionFormat[T] extends JsonFormat[Option[T]]

Attributes

Inherited from:
StandardFormats
Supertypes
trait JsonFormat[Option[T]]
trait JsonWriter[Option[T]]
trait JsonReader[Option[T]]
class Object
trait Matchable
class Any
Show all
object RootJsArrayFormat extends RootJsonFormat[JsArray]

Attributes

Inherited from:
AdditionalFormats
Supertypes
trait RootJsonFormat[JsArray]
trait RootJsonWriter[JsArray]
trait RootJsonReader[JsArray]
trait JsonFormat[JsArray]
trait JsonWriter[JsArray]
trait JsonReader[JsArray]
class Object
trait Matchable
class Any
Show all
object RootJsObjectFormat extends RootJsonFormat[JsObject]

Attributes

Inherited from:
AdditionalFormats
Supertypes
trait RootJsonFormat[JsObject]
trait RootJsonWriter[JsObject]
trait RootJsonReader[JsObject]
trait JsonFormat[JsObject]
trait JsonWriter[JsObject]
trait JsonReader[JsObject]
class Object
trait Matchable
class Any
Show all
object ShortJsonFormat extends JsonFormat[Short]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Short]
trait JsonWriter[Short]
trait JsonReader[Short]
class Object
trait Matchable
class Any
Show all
object StringJsonFormat extends JsonFormat[String]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[String]
trait JsonWriter[String]
trait JsonReader[String]
class Object
trait Matchable
class Any
Show all
object SymbolJsonFormat extends JsonFormat[Symbol]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Symbol]
trait JsonWriter[Symbol]
trait JsonReader[Symbol]
class Object
trait Matchable
class Any
Show all
object UnitJsonFormat extends JsonFormat[Unit]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Unit]
trait JsonWriter[Unit]
trait JsonReader[Unit]
class Object
trait Matchable
class Any
Show all

Value members

Inherited methods

def jsonFormat[T](reader: JsonReader[T], writer: JsonWriter[T]): JsonFormat[T]

Constructs a JsonFormat from its two parts, JsonReader and JsonWriter.

Constructs a JsonFormat from its two parts, JsonReader and JsonWriter.

Attributes

Inherited from:
AdditionalFormats
inline def jsonFormatN[T <: Product]: RootJsonFormat[T]

Attributes

Inherited from:
ProductFormats
def lazyFormat[T](format: => JsonFormat[T]): JsonFormat[T]

Lazy wrapper around serialization. Useful when you want to serialize (mutually) recursive structures.

Lazy wrapper around serialization. Useful when you want to serialize (mutually) recursive structures.

Attributes

Inherited from:
AdditionalFormats
def lift[T <: AnyRef](reader: RootJsonReader[T]): RootJsonFormat[T]

Turns a RootJsonReader into a RootJsonFormat that throws an UnsupportedOperationException for writes.

Turns a RootJsonReader into a RootJsonFormat that throws an UnsupportedOperationException for writes.

Attributes

Inherited from:
AdditionalFormats
def lift[T <: AnyRef](reader: JsonReader[T]): JsonFormat[T]

Turns a JsonReader into a JsonFormat that throws an UnsupportedOperationException for writes.

Turns a JsonReader into a JsonFormat that throws an UnsupportedOperationException for writes.

Attributes

Inherited from:
AdditionalFormats
def lift[T](writer: RootJsonWriter[T]): RootJsonFormat[T]

Turns a RootJsonWriter into a RootJsonFormat that throws an UnsupportedOperationException for reads.

Turns a RootJsonWriter into a RootJsonFormat that throws an UnsupportedOperationException for reads.

Attributes

Inherited from:
AdditionalFormats
def lift[T](writer: JsonWriter[T]): JsonFormat[T]

Turns a JsonWriter into a JsonFormat that throws an UnsupportedOperationException for reads.

Turns a JsonWriter into a JsonFormat that throws an UnsupportedOperationException for reads.

Attributes

Inherited from:
AdditionalFormats

Attributes

Inherited from:
ProductFormats
def rootFormat[T](format: JsonFormat[T]): RootJsonFormat[T]

Explicitly turns a JsonFormat into a RootJsonFormat.

Explicitly turns a JsonFormat into a RootJsonFormat.

Attributes

Inherited from:
AdditionalFormats
def rootJsonFormat[T](reader: RootJsonReader[T], writer: RootJsonWriter[T]): RootJsonFormat[T]

Constructs a RootJsonFormat from its two parts, RootJsonReader and RootJsonWriter.

Constructs a RootJsonFormat from its two parts, RootJsonReader and RootJsonWriter.

Attributes

Inherited from:
AdditionalFormats
def safeReader[A : JsonReader]: JsonReader[Either[Exception, A]]

Wraps an existing JsonReader with Exception protection.

Wraps an existing JsonReader with Exception protection.

Attributes

Inherited from:
AdditionalFormats
def viaSeq[I <: Iterable[T], T : JsonFormat](f: Seq[T] => I): RootJsonFormat[I]

A JsonFormat construction helper that creates a JsonFormat for an Iterable type I from a builder function List => I.

A JsonFormat construction helper that creates a JsonFormat for an Iterable type I from a builder function List => I.

Attributes

Inherited from:
CollectionFormats

Attributes

Inherited from:
ProductFormats

Implicits

Inherited implicits

implicit def arrayFormat[T : ClassTag]: RootJsonFormat[Array[T]]

Supplies the JsonFormat for Arrays.

Supplies the JsonFormat for Arrays.

Attributes

Inherited from:
CollectionFormats
implicit def eitherFormat[A : JsonFormat, B : JsonFormat]: JsonFormat[Either[A, B]]

Attributes

Inherited from:
StandardFormats
implicit def immIndexedSeqFormat[T : JsonFormat]: RootJsonFormat[IndexedSeq[T]]

Attributes

Inherited from:
CollectionFormats
implicit def immIterableFormat[T : JsonFormat]: RootJsonFormat[Iterable[T]]

Attributes

Inherited from:
CollectionFormats
implicit def immLinearSeqFormat[T : JsonFormat]: RootJsonFormat[LinearSeq[T]]

Attributes

Inherited from:
CollectionFormats
implicit def immSeqFormat[T : JsonFormat]: RootJsonFormat[Seq[T]]

Attributes

Inherited from:
CollectionFormats
implicit def immSetFormat[T : JsonFormat]: RootJsonFormat[Set[T]]

Attributes

Inherited from:
CollectionFormats
implicit def indexedSeqFormat[T : JsonFormat]: RootJsonFormat[IndexedSeq[T]]

Attributes

Inherited from:
CollectionFormats
implicit def iterableFormat[T : JsonFormat]: RootJsonFormat[Iterable[T]]

Attributes

Inherited from:
CollectionFormats
implicit def linearSeqFormat[T : JsonFormat]: RootJsonFormat[LinearSeq[T]]

Attributes

Inherited from:
CollectionFormats
implicit def listFormat[T : JsonFormat]: RootJsonFormat[List[T]]

Supplies the JsonFormat for Lists.

Supplies the JsonFormat for Lists.

Attributes

Inherited from:
CollectionFormats
implicit def mapFormat[K : JsonFormat, V : JsonFormat]: RootJsonFormat[Map[K, V]]

Supplies the JsonFormat for Maps. The implicitly available JsonFormat for the key type K must always write JsStrings, otherwise a besom.json.SerializationException will be thrown.

Supplies the JsonFormat for Maps. The implicitly available JsonFormat for the key type K must always write JsStrings, otherwise a besom.json.SerializationException will be thrown.

Attributes

Inherited from:
CollectionFormats
implicit def optionFormat[T : JsonFormat]: JsonFormat[Option[T]]

Attributes

Inherited from:
StandardFormats
implicit def seqFormat[T : JsonFormat]: RootJsonFormat[Seq[T]]

Attributes

Inherited from:
CollectionFormats
implicit def setFormat[T : JsonFormat]: RootJsonFormat[Set[T]]

Attributes

Inherited from:
CollectionFormats
implicit def tuple1Format[A : JsonFormat]: JsonFormat[(A)]

Attributes

Inherited from:
StandardFormats
implicit def tuple2Format[A : JsonFormat, B : JsonFormat]: RootJsonFormat[(A, B)]

Attributes

Inherited from:
StandardFormats
implicit def tuple3Format[A : JsonFormat, B : JsonFormat, C : JsonFormat]: RootJsonFormat[(A, B, C)]

Attributes

Inherited from:
StandardFormats
implicit def tuple4Format[A : JsonFormat, B : JsonFormat, C : JsonFormat, D : JsonFormat]: RootJsonFormat[(A, B, C, D)]

Attributes

Inherited from:
StandardFormats
implicit def tuple5Format[A : JsonFormat, B : JsonFormat, C : JsonFormat, D : JsonFormat, E : JsonFormat]: RootJsonFormat[(A, B, C, D, E)]

Attributes

Inherited from:
StandardFormats
implicit def tuple6Format[A : JsonFormat, B : JsonFormat, C : JsonFormat, D : JsonFormat, E : JsonFormat, F : JsonFormat]: RootJsonFormat[(A, B, C, D, E, F)]

Attributes

Inherited from:
StandardFormats
implicit def tuple7Format[A : JsonFormat, B : JsonFormat, C : JsonFormat, D : JsonFormat, E : JsonFormat, F : JsonFormat, G : JsonFormat]: RootJsonFormat[(A, B, C, D, E, F, G)]

Attributes

Inherited from:
StandardFormats
implicit def vectorFormat[T : JsonFormat]: RootJsonFormat[Vector[T]]

Attributes

Inherited from:
CollectionFormats