JArray

case class JArray(arr: List[JValue]) extends JValue
class JValue
trait Serializable
trait Product
trait Equals
trait Diffable
class Object
trait Matchable
class Any

Type members

Types

type Values = List[Any]

Value members

Concrete methods

override def apply(i: Int): JValue
Definition Classes
Source:
JValue.scala

Inherited methods

def ++(other: JValue): JValue

Concatenate with another JSON. This is a concatenation monoid: (JValue, ++, JNothing)

Concatenate with another JSON. This is a concatenation monoid: (JValue, ++, JNothing)

Example:

JArray(JInt(1) :: JInt(2) :: Nil) ++ JArray(JInt(3) :: Nil) ==
JArray(List(JInt(1), JInt(2), JInt(3)))
Inherited from:
JValue
Source:
JValue.scala
def children: List[JValue]

Return direct child elements.

Return direct child elements.

Example:

JArray(JInt(1) :: JInt(2) :: Nil).children == List(JInt(1), JInt(2))
Inherited from:
JValue
Source:
JValue.scala
def diff(other: JValue): Diff

Return a diff.

Return a diff.

See also:

org.json4s.Diff#diff

Inherited from:
Diffable
Source:
Diff.scala
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product
def toOption: Option[JValue]

When this org.json4s.JValue is a org.json4s.JNothing or a org.json4s.JNull, this method returns scala.None When it has a value it will return scala.Some

When this org.json4s.JValue is a org.json4s.JNothing or a org.json4s.JNull, this method returns scala.None When it has a value it will return scala.Some

Inherited from:
JValue
Source:
JValue.scala
def toSome: Option[JValue]

When this org.json4s.JValue is a org.json4s.JNothing, this method returns scala.None When it has a value it will return scala.Some

When this org.json4s.JValue is a org.json4s.JNothing, this method returns scala.None When it has a value it will return scala.Some

Inherited from:
JValue
Source:
JValue.scala