Packages

final case class JsArray(values: Seq[JsValue] = Vector.empty) extends AbstractJsArray with Json[JsArray] with Traversable[JsValue] with Iterable[JsValue] with Product with Serializable

represents an immutable Json array. There are several ways of creating a Json array, being the most common the following:

  • From a string, array of bytes or an input stream of bytes, using the parse functions of the companion object
  • From the apply function of the companion object:
values

immutable seq of JsValue

Linear Supertypes
Serializable, Serializable, Product, Iterable[JsValue], IterableLike[JsValue, Iterable[JsValue]], Equals, GenIterable[JsValue], GenIterableLike[JsValue, Iterable[JsValue]], Traversable[JsValue], GenTraversable[JsValue], GenericTraversableTemplate[JsValue, Iterable], TraversableLike[JsValue, Iterable[JsValue]], GenTraversableLike[JsValue, Iterable[JsValue]], Parallelizable[JsValue, ParIterable[JsValue]], TraversableOnce[JsValue], GenTraversableOnce[JsValue], FilterMonadic[JsValue, Iterable[JsValue]], HasNewBuilder[JsValue, Iterable[value.JsValue] @scala.annotation.unchecked.uncheckedVariance], Json[JsArray], JsValue, AbstractJsArray, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsArray
  2. Serializable
  3. Serializable
  4. Product
  5. Iterable
  6. IterableLike
  7. Equals
  8. GenIterable
  9. GenIterableLike
  10. Traversable
  11. GenTraversable
  12. GenericTraversableTemplate
  13. TraversableLike
  14. GenTraversableLike
  15. Parallelizable
  16. TraversableOnce
  17. GenTraversableOnce
  18. FilterMonadic
  19. HasNewBuilder
  20. Json
  21. JsValue
  22. AbstractJsArray
  23. AnyRef
  24. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsArray(values: Seq[JsValue] = Vector.empty)

    values

    immutable seq of JsValue

Type Members

  1. type Self = Iterable[JsValue]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  2. class WithFilter extends FilterMonadic[A, Repr]
    Definition Classes
    TraversableLike

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def ++[B >: JsValue, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[JsValue], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  4. def ++:[B >: JsValue, That](that: Traversable[B])(implicit bf: CanBuildFrom[Iterable[JsValue], B, That]): That
    Definition Classes
    TraversableLike
  5. def ++:[B >: JsValue, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[JsValue], B, That]): That
    Definition Classes
    TraversableLike
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def addString(b: StringBuilder): StringBuilder
    Definition Classes
    TraversableOnce
  8. def addString(b: StringBuilder, sep: String): StringBuilder
    Definition Classes
    TraversableOnce
  9. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
    Definition Classes
    TraversableOnce
  10. def aggregate[B](z: ⇒ B)(seqop: (B, JsValue) ⇒ B, combop: (B, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  11. def append(value: JsValue): JsArray
  12. def appendAll(xs: TraversableOnce[JsValue]): JsArray
  13. def apply(i: Int): JsValue
  14. final def apply(path: JsPath): JsValue

    Returns the element located at a specified path.

    Returns the element located at a specified path. This function is total on its argument. If no element is found, JsNothing is returned

    path

    the path

    returns

    the json value found at the path

    Definition Classes
    Json
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def canEqual(that: Any): Boolean
    Definition Classes
    IterableLike → Equals
  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  18. def collect[B, That](pf: PartialFunction[JsValue, B])(implicit bf: CanBuildFrom[Iterable[JsValue], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  19. def collectFirst[B](pf: PartialFunction[JsValue, B]): Option[B]
    Definition Classes
    TraversableOnce
  20. def companion: GenericCompanion[Iterable]
    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → GenericTraversableTemplate
  21. def concat(other: JsArray, ARRAY_AS: JsArray.TYPE.Value = JsArray.TYPE.LIST): JsArray
  22. def containsPath(path: JsPath): Boolean

    Returns true if there is an element at the specified path

    Returns true if there is an element at the specified path

    path

    the path

    returns

    true if the path exists, false otherwise

    Definition Classes
    Json
  23. def copyToArray[B >: JsValue](xs: Array[B], start: Int, len: Int): Unit
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  24. def copyToArray[B >: JsValue](xs: Array[B]): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  25. def copyToArray[B >: JsValue](xs: Array[B], start: Int): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  26. def copyToBuffer[B >: JsValue](dest: Buffer[B]): Unit
    Definition Classes
    TraversableOnce
  27. def count(p: (JsValue) ⇒ Boolean): Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  28. def drop(n: Int): Iterable[JsValue]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  29. def dropRight(n: Int): Iterable[JsValue]
    Definition Classes
    IterableLike
  30. def dropWhile(p: (JsValue) ⇒ Boolean): Iterable[JsValue]
    Definition Classes
    TraversableLike → GenTraversableLike
  31. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. def equals(that: Any): Boolean
    Definition Classes
    JsArray → Equals → AnyRef → Any
  33. def exists(p: (JsValue) ⇒ Boolean): Boolean
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  34. def filter(p: (JsValue) ⇒ Boolean): JsArray
    Definition Classes
    JsArray → TraversableLike → GenTraversableLike
  35. def filterAll(p: (JsPrimitive) ⇒ Boolean): JsArray
    Definition Classes
    AbstractJsArray
  36. def filterAll(p: (JsPath, JsPrimitive) ⇒ Boolean): JsArray
    Definition Classes
    AbstractJsArray
  37. def filterAllJsObj(p: (JsObj) ⇒ Boolean): JsArray
    Definition Classes
    AbstractJsArray
  38. def filterAllJsObj(p: (JsPath, JsObj) ⇒ Boolean): JsArray
    Definition Classes
    AbstractJsArray
  39. def filterAllKeys(p: (String) ⇒ Boolean): JsArray
    Definition Classes
    AbstractJsArray
  40. def filterAllKeys(p: (JsPath, JsValue) ⇒ Boolean): JsArray
    Definition Classes
    AbstractJsArray
  41. def filterNot(p: (JsValue) ⇒ Boolean): Iterable[JsValue]
    Definition Classes
    TraversableLike → GenTraversableLike
  42. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  43. def find(p: (JsValue) ⇒ Boolean): Option[JsValue]
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  44. def flatMap(f: (JsValue) ⇒ JsArray): JsArray
  45. def flatMap[B, That](f: (JsValue) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[JsValue], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  46. def flatten: Stream[(JsPath, JsValue)]

    returns

    a lazy list of pairs of path and value

    Definition Classes
    JsArrayJson
  47. def flatten[B](implicit asTraversable: (JsValue) ⇒ GenTraversableOnce[B]): Iterable[B]
    Definition Classes
    GenericTraversableTemplate
  48. def fold[A1 >: JsValue](z: A1)(op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  49. def foldLeft[B](z: B)(op: (B, JsValue) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  50. def foldRight[B](z: B)(op: (JsValue, B) ⇒ B): B
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  51. def forall(p: (JsValue) ⇒ Boolean): Boolean
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  52. def foreach[U](f: (JsValue) ⇒ U): Unit
    Definition Classes
    JsArray → IterableLike → GenericTraversableTemplate → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  53. def genericBuilder[B]: Builder[B, Iterable[B]]
    Definition Classes
    GenericTraversableTemplate
  54. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  55. def groupBy[K](f: (JsValue) ⇒ K): Map[K, Iterable[JsValue]]
    Definition Classes
    TraversableLike → GenTraversableLike
  56. def grouped(size: Int): Iterator[Iterable[JsValue]]
    Definition Classes
    IterableLike
  57. def hasDefiniteSize: Boolean
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  58. def head: JsValue
    Definition Classes
    JsArray → IterableLike → GenericTraversableTemplate → TraversableLike → GenTraversableLike
  59. def headOption: Option[JsValue]
    Definition Classes
    TraversableLike → GenTraversableLike
  60. def id: Int

    Every implementation of this trait has an unique identifier in order.

    Every implementation of this trait has an unique identifier in order.

    returns

    unique identifier of the type

    Definition Classes
    JsArrayJsValue
  61. def init: JsArray

    The initial part of the Json object without its last element.

    The initial part of the Json object without its last element.

    Definition Classes
    JsArray → TraversableLike → GenTraversableLike → Json
  62. def inits: Iterator[Iterable[JsValue]]
    Definition Classes
    TraversableLike
  63. def insert(path: JsPath, value: JsValue, padWith: JsValue = JsNull): JsArray

    Creates a new Json obtained by inserting a given path/value pair into this Json.

    Creates a new Json obtained by inserting a given path/value pair into this Json. The given element is always inserted at the given path, even if it requires to create new Json or padding arrays.

    path

    the path

    value

    the value

    returns

    A new Json with the new path/value mapping added to this Json.

    Definition Classes
    JsArrayJson
  64. def isArr: Boolean

    returns true if this is an array

    returns true if this is an array

    Definition Classes
    JsArrayJsValue
  65. def isArr(predicate: (JsArray) ⇒ Boolean): Boolean

    returns true if this is an array that satisfies a predicate

    returns true if this is an array that satisfies a predicate

    Definition Classes
    JsValue
  66. def isBigDec: Boolean

    returns true if this is a big decimal.

    returns true if this is a big decimal.

    Definition Classes
    JsonJsValue
  67. def isBigInt: Boolean

    returns true if this is a big integer.

    returns true if this is a big integer.

    Definition Classes
    JsonJsValue
  68. def isBool: Boolean

    returns true if this is a boolean

    returns true if this is a boolean

    Definition Classes
    JsonJsValue
  69. def isDecimal(predicate: (BigDecimal) ⇒ Boolean): Boolean

    returns true if this is a big decimal that satisfies a predicate

    returns true if this is a big decimal that satisfies a predicate

    Definition Classes
    JsValue
  70. def isDecimal: Boolean

    returns true if this type is a decimal number

    returns true if this type is a decimal number

    returns

    isDouble || isBigDec

    Definition Classes
    JsValue
  71. def isDouble: Boolean

    returns true if this is a double

    returns true if this is a double

    Definition Classes
    JsonJsValue
  72. def isDouble(predicate: (Double) ⇒ Boolean): Boolean

    returns true if this is a double that satisfies a predicate

    returns true if this is a double that satisfies a predicate

    Definition Classes
    JsValue
  73. def isEmpty: Boolean

    returns true if the Json is empty

    returns true if the Json is empty

    returns

    true if empty, false otherwise

    Definition Classes
    JsArray → IterableLike → GenericTraversableTemplate → TraversableLike → TraversableOnce → GenTraversableOnce → Json
  74. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  75. def isInt: Boolean

    returns true if this is an integer (32 bit precision number)

    returns true if this is an integer (32 bit precision number)

    Definition Classes
    JsonJsValue
  76. def isInt(predicate: (Int) ⇒ Boolean): Boolean

    returns true if this is an integer that satisfies a predicate

    returns true if this is an integer that satisfies a predicate

    Definition Classes
    JsValue
  77. def isIntegral(predicate: (BigInt) ⇒ Boolean): Boolean

    returns true if this is a big integer that satisfies a predicate

    returns true if this is a big integer that satisfies a predicate

    Definition Classes
    JsValue
  78. def isIntegral: Boolean

    returns true if this type is an integral number

    returns true if this type is an integral number

    returns

    isInt || isLong || isBigInt

    Definition Classes
    JsValue
  79. def isJson: Boolean

    returns true is this type is an array or an object

    returns true is this type is an array or an object

    Definition Classes
    JsValue
  80. def isJson(predicate: (Json[_]) ⇒ Boolean): Boolean

    returns true if this is a json that satisfies a predicate

    returns true if this is a json that satisfies a predicate

    predicate

    the predicate

    Definition Classes
    JsValue
  81. def isLong: Boolean

    returns true if this is a long (62 bit precision number)

    returns true if this is a long (62 bit precision number)

    Definition Classes
    JsonJsValue
  82. def isLong(predicate: (Long) ⇒ Boolean): Boolean

    returns true if this is a long that satisfies a predicate

    returns true if this is a long that satisfies a predicate

    Definition Classes
    JsValue
  83. def isNotEmpty: Boolean
    Definition Classes
    Json
  84. def isNotJson: Boolean

    returns true if this is neither an object nor an array

    returns true if this is neither an object nor an array

    Definition Classes
    JsValue
  85. def isNotNull: Boolean

    returns true if this is not null

    returns true if this is not null

    Definition Classes
    JsValue
  86. def isNotNumber: Boolean

    returns true if this is not a number

    returns true if this is not a number

    Definition Classes
    JsValue
  87. def isNothing: Boolean

    returns true if this is JsNothing

    returns true if this is JsNothing

    Definition Classes
    JsonJsValue
  88. def isNull: Boolean

    returns true if this is JsNull

    returns true if this is JsNull

    Definition Classes
    JsonJsValue
  89. def isNumber: Boolean

    returns true if this is a number

    returns true if this is a number

    Definition Classes
    JsonJsValue
  90. def isObj: Boolean

    returns true if this is an object

    returns true if this is an object

    Definition Classes
    JsArrayJsValue
  91. def isObj(predicate: (JsObj) ⇒ Boolean): Boolean

    returns true if this is an object that satisfies a predicate

    returns true if this is an object that satisfies a predicate

    Definition Classes
    JsValue
  92. def isPrimitive: Boolean

    returns true is this is a primitive type

    returns true is this is a primitive type

    Definition Classes
    JsonJsValue
  93. def isStr: Boolean

    returns true if this is a string

    returns true if this is a string

    Definition Classes
    JsonJsValue
  94. def isStr(predicate: (String) ⇒ Boolean): Boolean

    returns true if this is a string that satisfies a predicate

    returns true if this is a string that satisfies a predicate

    Definition Classes
    JsValue
  95. final def isTraversableAgain: Boolean
    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  96. def iterator: Iterator[JsValue]
    Definition Classes
    JsArray → IterableLike → GenIterableLike
  97. def last: JsValue
    Definition Classes
    JsArray → TraversableLike → GenTraversableLike
  98. def lastOption: Option[JsValue]
    Definition Classes
    TraversableLike → GenTraversableLike
  99. def length(): Int
  100. def map[B, That](f: (JsValue) ⇒ B)(implicit bf: CanBuildFrom[Iterable[JsValue], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  101. def mapAll(m: (JsPrimitive) ⇒ JsValue): JsArray
    Definition Classes
    AbstractJsArray
  102. def mapAll(m: (JsPath, JsPrimitive) ⇒ JsValue, p: (JsPath, JsPrimitive) ⇒ Boolean = (_, _) => true): JsArray
    Definition Classes
    AbstractJsArray
  103. def mapAllKeys(m: (String) ⇒ String): JsArray
    Definition Classes
    AbstractJsArray
  104. def mapAllKeys(m: (JsPath, JsValue) ⇒ String, p: (JsPath, JsValue) ⇒ Boolean = (_, _) => true): JsArray
    Definition Classes
    AbstractJsArray
  105. def max[B >: JsValue](implicit cmp: Ordering[B]): JsValue
    Definition Classes
    TraversableOnce → GenTraversableOnce
  106. def maxBy[B](f: (JsValue) ⇒ B)(implicit cmp: Ordering[B]): JsValue
    Definition Classes
    TraversableOnce → GenTraversableOnce
  107. def min[B >: JsValue](implicit cmp: Ordering[B]): JsValue
    Definition Classes
    TraversableOnce → GenTraversableOnce
  108. def minBy[B](f: (JsValue) ⇒ B)(implicit cmp: Ordering[B]): JsValue
    Definition Classes
    TraversableOnce → GenTraversableOnce
  109. def mkString: String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  110. def mkString(sep: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  111. def mkString(start: String, sep: String, end: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  112. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  113. def newBuilder: Builder[JsValue, Iterable[JsValue]]
    Attributes
    protected[this]
    Definition Classes
    GenericTraversableTemplate → HasNewBuilder
  114. def nonEmpty: Boolean

    returns true if the Json is non empty

    returns true if the Json is non empty

    returns

    true if non empty, false otherwise

    Definition Classes
    JsArray → TraversableOnce → GenTraversableOnce → Json
  115. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  116. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  117. def par: ParIterable[JsValue]
    Definition Classes
    Parallelizable
  118. def parCombiner: Combiner[JsValue, ParIterable[JsValue]]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  119. def partition(p: (JsValue) ⇒ Boolean): (Iterable[JsValue], Iterable[JsValue])
    Definition Classes
    TraversableLike → GenTraversableLike
  120. def prepend(value: JsValue): JsArray
  121. def prependAll(xs: TraversableOnce[JsValue]): JsArray
  122. def product[B >: JsValue](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  123. def reduce[A1 >: JsValue](op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  124. def reduceAll[V](p: (JsPath, JsPrimitive) ⇒ Boolean = (_, _) => true, m: (JsPath, JsPrimitive) ⇒ V, r: (V, V) ⇒ V): Option[V]
    Definition Classes
    AbstractJsArray
  125. def reduceLeft[B >: JsValue](op: (B, JsValue) ⇒ B): B
    Definition Classes
    TraversableOnce
  126. def reduceLeftOption[B >: JsValue](op: (B, JsValue) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  127. def reduceOption[A1 >: JsValue](op: (A1, A1) ⇒ A1): Option[A1]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  128. def reduceRight[B >: JsValue](op: (JsValue, B) ⇒ B): B
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  129. def reduceRightOption[B >: JsValue](op: (JsValue, B) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  130. def remove(path: JsPath): JsArray

    Removes a path from this Json

    Removes a path from this Json

    path

    the path to be remove

    returns

    If this Json does not contain a binding for path it is returned unchanged. Otherwise, returns a new Json without a binding for path

    Definition Classes
    JsArrayJson
  131. def removeAll(xs: TraversableOnce[JsPath]): JsArray

    Creates a new Json from this Json by removing all paths of another collection

    Creates a new Json from this Json by removing all paths of another collection

    xs

    the collection containing the paths to remove

    returns

    a new Json with the given paths remove.

    Definition Classes
    JsArrayJson
  132. def repr: Iterable[JsValue]
    Definition Classes
    TraversableLike → GenTraversableLike
  133. def reversed: List[JsValue]
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  134. def sameElements[B >: JsValue](that: GenIterable[B]): Boolean
    Definition Classes
    IterableLike → GenIterableLike
  135. def scan[B >: JsValue, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Iterable[JsValue], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  136. def scanLeft[B, That](z: B)(op: (B, JsValue) ⇒ B)(implicit bf: CanBuildFrom[Iterable[JsValue], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  137. def scanRight[B, That](z: B)(op: (JsValue, B) ⇒ B)(implicit bf: CanBuildFrom[Iterable[JsValue], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.

  138. def seq: Iterable[JsValue]
    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  139. def serialize: Array[Byte]

    Serialize this Json into an array of bytes.

    Serialize this Json into an array of bytes. When possible, it's more efficient to work on byte level that with strings

    returns

    this Json serialized into an array of bytes

    Definition Classes
    Json
  140. def serialize(outputStream: OutputStream): () ⇒ Unit

    Returns a zero-argument function that when called, it serializes this Json into the given output stream, no returning anything

    Returns a zero-argument function that when called, it serializes this Json into the given output stream, no returning anything

    outputStream

    the output stream

    returns

    () => Unit function that serializes this Json into the given output stream

    Definition Classes
    Json
  141. def size: Int
    Definition Classes
    JsArray → GenTraversableLike → TraversableOnce → GenTraversableOnce → Json
  142. def sizeHintIfCheap: Int
    Attributes
    protected[collection]
    Definition Classes
    GenTraversableOnce
  143. def slice(from: Int, until: Int): Iterable[JsValue]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  144. def sliding(size: Int, step: Int): Iterator[Iterable[JsValue]]
    Definition Classes
    IterableLike
  145. def sliding(size: Int): Iterator[Iterable[JsValue]]
    Definition Classes
    IterableLike
  146. def span(p: (JsValue) ⇒ Boolean): (Iterable[JsValue], Iterable[JsValue])
    Definition Classes
    TraversableLike → GenTraversableLike
  147. def splitAt(n: Int): (Iterable[JsValue], Iterable[JsValue])
    Definition Classes
    TraversableLike → GenTraversableLike
  148. def stringPrefix: String
    Definition Classes
    TraversableLike → GenTraversableLike
  149. def sum[B >: JsValue](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  150. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  151. def tail: JsArray

    The rest of the Json object without its first element.

    The rest of the Json object without its first element.

    Definition Classes
    JsArray → TraversableLike → GenTraversableLike → Json
  152. def tails: Iterator[Iterable[JsValue]]
    Definition Classes
    TraversableLike
  153. def take(n: Int): Iterable[JsValue]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  154. def takeRight(n: Int): Iterable[JsValue]
    Definition Classes
    IterableLike
  155. def takeWhile(p: (JsValue) ⇒ Boolean): Iterable[JsValue]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  156. def thisCollection: Iterable[JsValue]
    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  157. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, JsValue, Col[JsValue]]): Col[JsValue]
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  158. def toArray[B >: JsValue](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  159. def toBuffer[B >: JsValue]: Buffer[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  160. def toCollection(repr: Iterable[JsValue]): Iterable[JsValue]
    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  161. def toIndexedSeq: IndexedSeq[JsValue]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  162. def toIterable: Iterable[JsValue]
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  163. def toIterator: Iterator[JsValue]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  164. def toJsArray: JsArray

    returns this value as a JsArray if it's an array, throwing an UserError otherwise.

    returns this value as a JsArray if it's an array, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition isArr can help to that purpose.

    Definition Classes
    JsArrayJsValue
  165. def toJsBigDec: JsBigDec

    returns this value as a JsBigDec if it's a decimal number, throwing an UserError otherwise.

    returns this value as a JsBigDec if it's a decimal number, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition isDecimal can help to that purpose.

    Definition Classes
    JsonJsValue
  166. def toJsBigInt: JsBigInt

    returns this value as a JsBigInt if it's an integral number, throwing an UserError otherwise.

    returns this value as a JsBigInt if it's an integral number, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition isIntegral can help to that purpose.

    Definition Classes
    JsonJsValue
  167. def toJsBool: JsBool

    returns this value as a JsBool if it's a boolean, throwing an UserError otherwise.

    returns this value as a JsBool if it's a boolean, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition isBool can help to that purpose.

    Definition Classes
    JsonJsValue
  168. def toJsDouble: JsDouble

    returns this value as a JsDouble if it is a JsLong or a JsInt or a JsDouble, throwing an UserError otherwise.

    returns this value as a JsDouble if it is a JsLong or a JsInt or a JsDouble, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition isInt || isLong || isDouble can help to that purpose.

    Definition Classes
    JsonJsValue
  169. def toJsInt: JsInt

    returns this value as a JsInt, throwing an UserError otherwise.

    returns this value as a JsInt, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition isInt can help to that purpose.

    Definition Classes
    JsonJsValue
  170. def toJsLong: JsLong

    returns this value as a JsLong if it is a JsLong or a JsInt, throwing an UserError otherwise.

    returns this value as a JsLong if it is a JsLong or a JsInt, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition isInt || isLong can help to that purpose.

    Definition Classes
    JsonJsValue
  171. def toJsNull: JsNull.type

    returns this value as a JsNull if it's null, throwing an UserError otherwise.

    returns this value as a JsNull if it's null, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition isNull can help to that purpose.

    Definition Classes
    JsonJsValue
  172. def toJsNumber: JsNumber

    returns this value as a JsNumber if it's a number, throwing an UserError otherwise.

    returns this value as a JsNumber if it's a number, throwing an UserError otherwise. It's the responsibility of the caller to make sure the invocation to this function doesn't fail. The guard condition isNumber can help to that purpose.

    Definition Classes
    JsonJsValue
  173. def toJsObj: JsObj

    returns this value as a JsObj if it's an object, throwing an UserError otherwise.

    returns this value as a JsObj if it's an object, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition isObj can help to that purpose.

    Definition Classes
    JsArrayJsValue
  174. def toJsPrimitive: JsPrimitive
    Definition Classes
    JsonJsValue
  175. def toJsStr: JsStr

    returns this value as a JsStr if it's a string, throwing an UserError otherwise.

    returns this value as a JsStr if it's a string, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition isStr can help to that purpose.

    Definition Classes
    JsonJsValue
  176. def toJson: Json[_]

    returns this value as a Json if it's an object or an array, throwing an UserError otherwise.

    returns this value as a Json if it's an object or an array, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition isJson can help to that purpose.

    Definition Classes
    JsArrayJsValue
  177. def toList: List[JsValue]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  178. def toMap[T, U](implicit ev: <:<[JsValue, (T, U)]): Map[T, U]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  179. def toPrettyString: String

    Converts the string representation of this Json to a pretty print version

    Converts the string representation of this Json to a pretty print version

    returns

    pretty print version of the string representation of this Json

    Definition Classes
    Json
  180. def toSeq: Seq[JsValue]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  181. def toSet[B >: JsValue]: Set[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  182. def toStream: Stream[JsValue]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  183. def toString(): String

    string representation of this Json array.

    string representation of this Json array. It's a lazy value which is only computed once.

    returns

    string representation of this Json array

    Definition Classes
    JsArray → TraversableLike → AnyRef → Any
  184. def toTraversable: Traversable[JsValue]
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  185. def toVector: Vector[JsValue]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  186. def transpose[B](implicit asTraversable: (JsValue) ⇒ GenTraversableOnce[B]): Iterable[Iterable[B]]
    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.

  187. def unzip[A1, A2](implicit asPair: (JsValue) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])
    Definition Classes
    GenericTraversableTemplate
  188. def unzip3[A1, A2, A3](implicit asTriple: (JsValue) ⇒ (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
    Definition Classes
    GenericTraversableTemplate
  189. def validate(spec: ArrayOfObjSpec): Stream[(JsPath, Invalid)]
  190. def validate(spec: JsArraySpec): Stream[(JsPath, Invalid)]
  191. def validate(predicate: JsArrayPredicate): Result
  192. def view(from: Int, until: Int): IterableView[JsValue, Iterable[JsValue]]
    Definition Classes
    IterableLike → TraversableLike
  193. def view: IterableView[JsValue, Iterable[JsValue]]
    Definition Classes
    IterableLike → TraversableLike
  194. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  195. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  196. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  197. def withFilter(p: (JsValue) ⇒ Boolean): FilterMonadic[JsValue, Iterable[JsValue]]
    Definition Classes
    TraversableLike → FilterMonadic
  198. def zip[A1 >: JsValue, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Iterable[JsValue], (A1, B), That]): That
    Definition Classes
    IterableLike → GenIterableLike
  199. def zipAll[B, A1 >: JsValue, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Iterable[JsValue], (A1, B), That]): That
    Definition Classes
    IterableLike → GenIterableLike
  200. def zipWithIndex[A1 >: JsValue, That](implicit bf: CanBuildFrom[Iterable[JsValue], (A1, Int), That]): That
    Definition Classes
    IterableLike → GenIterableLike

Deprecated Value Members

  1. def /:[B](z: B)(op: (B, JsValue) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.10) Use foldLeft instead of /:

  2. def :\[B](z: B)(op: (JsValue, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.10) Use foldRight instead of :\

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Iterable[JsValue]

Inherited from IterableLike[JsValue, Iterable[JsValue]]

Inherited from Equals

Inherited from GenIterable[JsValue]

Inherited from GenIterableLike[JsValue, Iterable[JsValue]]

Inherited from Traversable[JsValue]

Inherited from GenTraversable[JsValue]

Inherited from GenericTraversableTemplate[JsValue, Iterable]

Inherited from TraversableLike[JsValue, Iterable[JsValue]]

Inherited from GenTraversableLike[JsValue, Iterable[JsValue]]

Inherited from Parallelizable[JsValue, ParIterable[JsValue]]

Inherited from TraversableOnce[JsValue]

Inherited from GenTraversableOnce[JsValue]

Inherited from FilterMonadic[JsValue, Iterable[JsValue]]

Inherited from HasNewBuilder[JsValue, Iterable[value.JsValue] @scala.annotation.unchecked.uncheckedVariance]

Inherited from Json[JsArray]

Inherited from JsValue

Inherited from AbstractJsArray

Inherited from AnyRef

Inherited from Any

Ungrouped