DefaultReads
Default deserializer type classes.
Attributes
- Graph
-
- Supertypes
- Known subtypes
-
object Reads.type
Members list
Type members
Classlikes
Deserializer for BigInt
Deserializer for BigInteger
Deserializer for Boolean types.
Deserializer for Double types.
Deserializer for Float types.
Deserializer for JsArray.
Deserializer for JsBoolean.
Deserializer for JsNumber.
Deserializer for JsObject.
Deserializer for JsString.
Deserializer for JsValue.
Deserializer for Short types.
Deserializer for String types.
Deserializer for java.util.UUID
Deserializer for java.util.UUID
Attributes
- Supertypes
Value members
Concrete methods
builds a JsErrorObj JsObject { VAL : "current known erroneous jsvalue", ERR : "the i18n key of the error msg", ARGS : "the args for the error msg" (JsArray) }
builds a JsErrorObj JsObject { VAL : "current known erroneous jsvalue", ERR : "the i18n key of the error msg", ARGS : "the args for the error msg" (JsArray) }
Attributes
Deserializer for a Map[Char, V]
Deserializer for a Map[Char, V]
Attributes
Reads for scala.Enumeration
types using the name.
Reads for scala.Enumeration
types using the name.
Value parameters
- enum
-
a
scala.Enumeration
.
Attributes
Reads a JSON object and constructs a tuple of two values, with custom names for the element fields.
Reads a JSON object and constructs a tuple of two values, with custom names for the element fields.
Type parameters
- A
-
the type for the first element
- B
-
the type for the second element
val tuple2Reads: Reads[(String, Int)] = Reads.tuple2[String, Int]("name", "age") val tuple2ExampleJson = Json.obj("name" -> "Alice", "age" -> 25) val tuple2Result: JsResult[(String, Int)] = tuple2Reads.reads(tuple2ExampleJson) // JsSuccess(("Alice", 25))
Value parameters
- name1
-
the name of the first element
_1
- name2
-
the name of the second element
_2
Attributes
Reads a JSON object and constructs a tuple of three values, with custom names for the element fields.
Reads a JSON object and constructs a tuple of three values, with custom names for the element fields.
Type parameters
- A
-
the type for the first element
- B
-
the type for the second element
- C
-
the type for the third element
val tuple3Reads: Reads[(String, Int, Boolean)] = Reads.tuple3[String, Int, Boolean]("name", "age", "isStudent") val tuple3ExampleJson: JsValue = Json.obj("name" -> "Alice", "age" -> 25, "isStudent" -> true) val tuple3Result: JsResult[(String, Int, Boolean)] = tuple3Reads.reads(tuple3ExampleJson) // JsSuccess(("Alice", 25, true))
Value parameters
- name1
-
the name of the first element
_1
- name2
-
the name of the second element
_2
- name3
-
the name of the third element
_3
Attributes
Reads a JSON object and constructs a tuple of four values, with custom names for the element fields.
Reads a JSON object and constructs a tuple of four values, with custom names for the element fields.
Type parameters
- A
-
the type for the first element
- B
-
the type for the second element
- C
-
the type for the third element
- D
-
the type for the fourth element
val tuple4Reads: Reads[(String, Int, Boolean, Double)] = Reads.tuple4[String, Int, Boolean, Double]( "name", "age", "isStudent", "score") val tuple4ExampleJson: JsValue = Json.obj( "name" -> "Alice", "age" -> 25, "isStudent" -> true, "score" -> 78.9) val tuple4Result: JsResult[(String, Int, Boolean, Double)] = tuple4Reads.reads(tuple4ExampleJson) // JsSuccess(("Alice", 25, true, 78.9))
Value parameters
- name1
-
the name of the first element
_1
- name2
-
the name of the second element
_2
- name3
-
the name of the third element
_3
- name4
-
the name of the fourth element
_4
Attributes
Implicits
Implicits
Deserializer for Array[T] types.
Deserializer for Array[T] types.
Attributes
Deserializer for BigDecimal
Deserializer for BigDecimal
Attributes
Deserializer for BigDecimal
Deserializer for BigDecimal
Attributes
Deserializer for a Map[K,V]
Deserializer for a Map[K,V]
Attributes
Deserializer for a Map[String,V]
Deserializer for a Map[String,V]
Attributes
Deserializer for java.net.URI
Deserializer for java.net.URI
Attributes
Inherited implicits
Attributes
- Inherited from:
- LowPriorityDefaultReads
Generic deserializer for collections types.