JsArray

case class JsArray(value: IndexedSeq[JsValue]) extends JsValue

Represent a Json array value.

Companion
object
trait Serializable
trait Product
trait Equals
trait JsValue
class Object
trait Matchable
class Any

Value members

Concrete methods

def ++(other: JsArray): JsArray

Concatenates this array with the elements of an other array.

Concatenates this array with the elements of an other array.

def +:(el: JsValue): JsArray

Prepend an element to this array.

Prepend an element to this array.

def :+(el: JsValue): JsArray

Append an element to this array.

Append an element to this array.

Inherited methods

def as[T](implicit fjs: Reads[T]): T

Tries to convert the node into a T, throwing an exception if it can't. An implicit Reads[T] must be defined.

Tries to convert the node into a T, throwing an exception if it can't. An implicit Reads[T] must be defined.

Inherited from
JsReadable
def asOpt[T](implicit fjs: Reads[T]): Option[T]

Tries to convert the node into a T. An implicit Reads[T] must be defined. Any error is mapped to None

Tries to convert the node into a T. An implicit Reads[T] must be defined. Any error is mapped to None

Returns

Some[T] if it succeeds, None if it fails.

Inherited from
JsReadable
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
override def toString: String
Definition Classes
JsValue -> Any
Inherited from
JsValue
def transform[A <: JsValue](rds: Reads[A]): JsResult[A]

Transforms this node into a JsResult using provided Json transformer Reads[JsValue]

Transforms this node into a JsResult using provided Json transformer Reads[JsValue]

Inherited from
JsReadable
def validate[A](implicit rds: Reads[A]): JsResult[A]
Inherited from
JsValue
def validateOpt[A](implicit rds: Reads[A]): JsResult[Option[A]]
Inherited from
JsValue