KeyReads

play.api.libs.json.KeyReads
See theKeyReads companion trait
object KeyReads extends EnvKeyReads

Attributes

Companion
trait
Graph
Supertypes
trait EnvKeyReads
class Object
trait Matchable
class Any
Self type
KeyReads.type

Members list

Type members

Inherited classlikes

object LanguageTagReads extends KeyReads[Locale]

Reads an object key as a locale, considering the key to be a language tag.

Reads an object key as a locale, considering the key to be a language tag.

Attributes

Inherited from:
EnvKeyReads
Supertypes
trait KeyReads[Locale]
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[T](f: String => JsResult[T]): KeyReads[T]

Returns an instance which uses f as KeyReads.readKey function.

Returns an instance which uses f as KeyReads.readKey function.

Attributes

Implicits

Implicits

implicit val booleanKeyReads: KeyReads[Boolean]
implicit val byteKeyReads: KeyReads[Byte]
implicit val charKeyReads: KeyReads[Char]
implicit val doubleKeyReads: KeyReads[Double]
implicit val floatKeyReads: KeyReads[Float]
implicit val intKeyReads: KeyReads[Int]
implicit val longKeyReads: KeyReads[Long]
implicit val shortKeyReads: KeyReads[Short]

Inherited implicits

implicit def readableKeyReads[T](implicit r: Reads[T]): KeyReads[T]

Attributes

Inherited from:
LowPriorityKeyReads (hidden)