CollectionFormats

class Object
trait Matchable
class Any

Value members

Concrete methods

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.

Implicits

Implicits

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

Supplies the JsonFormat for Arrays.

Supplies the JsonFormat for Arrays.

implicit
implicit
implicit
implicit
implicit
implicit
def indexedSeqFormat[T : JsonFormat]: RootJsonFormat[IndexedSeq[T]]
implicit
implicit
def linearSeqFormat[T : JsonFormat]: RootJsonFormat[LinearSeq[T]]
implicit

Supplies the JsonFormat for Lists.

Supplies the JsonFormat for Lists.

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 spray.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 spray.json.SerializationException will be thrown.

implicit
implicit
implicit