DefaultWrites
Default Serializers.
Attributes
- Graph
-
- Supertypes
- Known subtypes
-
object Writes.type
Members list
Type members
Classlikes
Serializer for BigDecimal types.
Serializer for BigInt type.
Serializer for BigInteger type.
Serializer for Boolean types.
Serializer for Byte types.
Serializer for Double types.
Serializer for Float types.
Serializer for Long types.
Serializer for Short types.
Serializer for String types.
Serializer for java.util.UUID
Deprecated classlikes
Attributes
- Deprecated
- true
- Supertypes
- Self type
-
DefaultDateWrites.type
Attributes
- Deprecated
- true
- Supertypes
- Self type
-
JsValueWrites.type
Value members
Concrete methods
Serializer for java.util.Date
Serializer for java.util.Date
Value parameters
- pattern
-
the pattern used by SimpleDateFormat
Attributes
Deprecated methods
Serializer for java.sql.Date
Serializer for java.sql.Date
Value parameters
- pattern
-
the pattern used by SimpleDateFormat
Attributes
- Deprecated
- true
Deprecated and Inherited methods
Serializer for Iterable types.
Serializer for Iterable types.
Deprecated due to incompatibility with non _[_]
shapes, #368.
Attributes
- Deprecated
- true
- Inherited from:
- LowPriorityWrites
Attributes
- Deprecated
- true
- Inherited from:
- LowPriorityWrites
Givens
Inherited givens
Serializer for scala.Enumeration by name.
Serializer for scala.Enumeration by name.
Attributes
- Inherited from:
- EnumerationWrites (hidden)
Implicits
Implicits
Serializer for JsNull.
Serializer for JsNull.
import play.api.libs.json.Json
Json.obj("foo" -> None)
// equivalent to Json.obj("foo" -> JsNull)
Attributes
Serializer for Option.
Serializer for Option.
Attributes
Serializer for Array[T] types.
Serializer for Array[T] types.
Attributes
Default Serializer java.util.Date -> JsNumber(d.getTime (nb of ms))
Default Serializer java.util.Date -> JsNumber(d.getTime (nb of ms))
Attributes
Serializer for Map[String,V] types.
Serializer for Map[String,V] types.
Attributes
Serializer for JsValues.
Serializer for JsValues.
Attributes
Serializer for scala.collection.immutable.Range (aka specialized Seq
of Int
).
Serializer for scala.collection.immutable.Range (aka specialized Seq
of Int
).
Attributes
If Some
is directly used (not as Option
).
If Some
is directly used (not as Option
).
import play.api.libs.json.{ Json, Writes }
def foo[T: Writes](writeableValue: T) =
Json.obj("foo" -> Some(writeableValue))
// equivalent to Json.obj("foo" -> writeableValue)
Attributes
Inherited implicits
Serializer for Iterable types.
Serializer for any type that is provided an implicit conversion to String (e.g. tagged types).
Serializer for any type that is provided an implicit conversion to String (e.g. tagged types).
Attributes
- Inherited from:
- LowPriorityWrites
Serializer for java.net.URI