case class JsArray(elements: ArrayBuffer[JsValue]) extends JsValue with Iterable[JsValue] with Product with Serializable
- Alphabetic
- By Inheritance
- JsArray
- Serializable
- Product
- Equals
- Iterable
- IterableFactoryDefaults
- IterableOps
- IterableOnceOps
- IterableOnce
- JsValue
- Dynamic
- AnyRef
- Any
- by iterableOnceExtensionMethods
- by jsArrayTopLevel
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new JsArray(elements: ArrayBuffer[JsValue])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- final def ++[B >: JsValue](suffix: IterableOnce[B]): Iterable[B]
- Definition Classes
- IterableOps
- Annotations
- @inline()
- def ++=(xs: IterableOnce[JsValue]): JsValue
Appends a number of elements provided by an iterable object.
Appends a number of elements provided by an iterable object. The identity of the array is returned.
- xs
the iterable object.
- returns
the updated buffer.
- def ++=:(xs: IterableOnce[JsValue]): JsValue
Prepends a number of elements provided by an iterable object.
Prepends a number of elements provided by an iterable object. The identity of the array is returned.
- xs
the iterable object.
- returns
the updated array.
- def +=(elem: JsValue): JsArray
Appends a single element to this array and returns the identity of the array.
Appends a single element to this array and returns the identity of the array. It takes constant amortized time.
- elem
the element to append.
- returns
the updated array.
- def +=:(elem: JsValue): JsValue
Prepends a single element to this buffer and returns the identity of the array.
Prepends a single element to this buffer and returns the identity of the array. It takes time linear in the buffer size.
- elem
the element to prepend.
- returns
the updated array.
- def ->[B](y: B): (JsArray, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def addString(b: StringBuilder): b.type
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def addString(b: StringBuilder, sep: String): b.type
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def addString(b: StringBuilder, start: String, sep: String, end: String): b.type
- Definition Classes
- IterableOnceOps
- def apply(range: Range): JsArray
- def apply(start: Int, end: Int, step: Int): JsArray
- def apply(start: Int, end: Int): JsArray
- def apply(index: Int): JsValue
- def apply(key: String): JsValue
- Definition Classes
- JsValue
- def applyDynamic(key: String)(index: Int): JsValue
- Definition Classes
- JsValue
- def asBoolean: Boolean
- Definition Classes
- JsValue
- def asDate: LocalDate
- Definition Classes
- JsValue
- def asDateTime: LocalDateTime
- Definition Classes
- JsValue
- def asDecimal: BigDecimal
- Definition Classes
- JsValue
- def asDouble: Double
- Definition Classes
- JsValue
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asInt: Int
- Definition Classes
- JsValue
- def asLong: Long
- Definition Classes
- JsValue
- def asTime: LocalTime
- Definition Classes
- JsValue
- def asTimestamp: Timestamp
- Definition Classes
- JsValue
- def canEqual(that: Any): Boolean
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Definition Classes
- Equals
- def className: String
- Attributes
- protected[this]
- Definition Classes
- Iterable
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def coll: JsArray.this.type
- Attributes
- protected
- Definition Classes
- Iterable → IterableOps
- def collect[B](pf: PartialFunction[JsValue, B]): Iterable[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def collectFirst[B](pf: PartialFunction[JsValue, B]): Option[B]
- Definition Classes
- IterableOnceOps
- def compactPrint: String
- Definition Classes
- JsValue
- def concat[B >: JsValue](suffix: IterableOnce[B]): Iterable[B]
- Definition Classes
- IterableOps
- final def contains[B1 >: B](elem: B1): Boolean
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Definition Classes
- Either
- def copyToArray[B >: JsValue](xs: Array[B], start: Int, len: Int): Int
- Definition Classes
- IterableOnceOps
- def copyToArray[B >: JsValue](xs: Array[B], start: Int): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def copyToArray[B >: JsValue](xs: Array[B]): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def corresponds[B](that: IterableOnce[B])(p: (JsValue, B) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def count(p: (JsValue) => Boolean): Int
- Definition Classes
- IterableOnceOps
- def drop(n: Int): Iterable[JsValue]
- Definition Classes
- IterableOps → IterableOnceOps
- def dropRight(n: Int): Iterable[JsValue]
- Definition Classes
- IterableOps
- def dropWhile(p: (JsValue) => Boolean): Iterable[JsValue]
- Definition Classes
- IterableOps → IterableOnceOps
- val elements: ArrayBuffer[JsValue]
- def empty: Iterable[JsValue]
- Definition Classes
- IterableFactoryDefaults → IterableOps
- def ensuring(cond: (JsArray) => Boolean, msg: => Any): JsArray
- def ensuring(cond: (JsArray) => Boolean): JsArray
- def ensuring(cond: Boolean, msg: => Any): JsArray
- def ensuring(cond: Boolean): JsArray
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(o: Any): Boolean
- Definition Classes
- JsArray → Equals → AnyRef → Any
- def exists(p: (JsValue) => Boolean): Boolean
- Definition Classes
- JsArray → IterableOnceOps
- def filter(pred: (JsValue) => Boolean): Iterable[JsValue]
- Definition Classes
- IterableOps → IterableOnceOps
- def filterNot(pred: (JsValue) => Boolean): Iterable[JsValue]
- Definition Classes
- IterableOps → IterableOnceOps
- def filterOrElse[A1 >: A](p: (JsArray) => Boolean, zero: => A1): Either[A1, JsArray]
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Definition Classes
- Either
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def find(p: (JsValue) => Boolean): Option[JsValue]
- Definition Classes
- JsArray → IterableOnceOps
- def flatMap[B](f: (JsValue) => IterableOnce[B]): Iterable[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def flatten[B](implicit asIterable: (JsValue) => IterableOnce[B]): Iterable[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def fold[A1 >: JsValue](z: A1)(op: (A1, A1) => A1): A1
- Definition Classes
- IterableOnceOps
- def foldLeft[B](z: B)(op: (B, JsValue) => B): B
- Definition Classes
- IterableOnceOps
- def foldRight[B](z: B)(op: (JsValue, B) => B): B
- Definition Classes
- IterableOnceOps
- def forall(p: (JsValue) => Boolean): Boolean
- Definition Classes
- JsArray → IterableOnceOps
- def foreach[U](p: (JsValue) => U): Unit
- Definition Classes
- JsArray → IterableOnceOps
- def fromSpecific(coll: IterableOnce[JsValue]): Iterable[JsValue]
- Attributes
- protected
- Definition Classes
- IterableFactoryDefaults → IterableOps
- def get(key: String): Option[JsValue]
- Definition Classes
- JsValue
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getOrElse[B1 >: B](or: => B1): B1
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Definition Classes
- Either
- def groupBy[K](f: (JsValue) => K): Map[K, Iterable[JsValue]]
- Definition Classes
- IterableOps
- def groupMap[K, B](key: (JsValue) => K)(f: (JsValue) => B): Map[K, Iterable[B]]
- Definition Classes
- IterableOps
- def groupMapReduce[K, B](key: (JsValue) => K)(f: (JsValue) => B)(reduce: (B, B) => B): Map[K, B]
- Definition Classes
- IterableOps
- def grouped(size: Int): Iterator[Iterable[JsValue]]
- Definition Classes
- IterableOps
- def head: JsValue
- Definition Classes
- IterableOps
- def headOption: Option[JsValue]
- Definition Classes
- IterableOps
- def init: Iterable[JsValue]
- Definition Classes
- IterableOps
- def inits: Iterator[Iterable[JsValue]]
- Definition Classes
- IterableOps
- def insertAll(idx: Int, seq: Iterable[JsValue]): Unit
Inserts new elements at the index
n
.Inserts new elements at the index
n
. Opposed to methodupdate
, this method will not replace an element with a new one. Instead, it will insert a new element at indexn
.- idx
the index where a new element will be inserted.
- seq
the iterable object providing all elements to insert.
- def isEmpty: Boolean
- Definition Classes
- JsArray → IterableOnceOps
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isLeft: Boolean
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Definition Classes
- Either
- def isRight: Boolean
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Definition Classes
- Either
- def isTraversableAgain: Boolean
- Definition Classes
- IterableOps → IterableOnceOps
- def iterableFactory: IterableFactory[Iterable]
- Definition Classes
- Iterable → IterableOps
- def iterator: Iterator[JsValue]
- Definition Classes
- JsArray → IterableOnce
- def joinLeft[A1 >: A, B1 >: B, C](implicit ev: <:<[A1, Either[C, B1]]): Either[C, B1]
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Definition Classes
- Either
- def joinRight[A1 >: A, B1 >: B, C](implicit ev: <:<[B1, Either[A1, C]]): Either[A1, C]
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Definition Classes
- Either
- def knownSize: Int
- Definition Classes
- JsArray → IterableOnce
- def last: JsValue
- Definition Classes
- IterableOps
- def lastOption: Option[JsValue]
- Definition Classes
- IterableOps
- def lazyZip[B](that: Iterable[B]): LazyZip2[JsValue, B, JsArray.this.type]
- Definition Classes
- Iterable
- def left: LeftProjection[JsObject, JsArray]
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Definition Classes
- Either
- def map[B](f: (JsValue) => B): Iterable[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def max[B >: JsValue](implicit ord: Ordering[B]): JsValue
- Definition Classes
- IterableOnceOps
- def maxBy[B](f: (JsValue) => B)(implicit cmp: Ordering[B]): JsValue
- Definition Classes
- IterableOnceOps
- def maxByOption[B](f: (JsValue) => B)(implicit cmp: Ordering[B]): Option[JsValue]
- Definition Classes
- IterableOnceOps
- def maxOption[B >: JsValue](implicit ord: Ordering[B]): Option[JsValue]
- Definition Classes
- IterableOnceOps
- def min[B >: JsValue](implicit ord: Ordering[B]): JsValue
- Definition Classes
- IterableOnceOps
- def minBy[B](f: (JsValue) => B)(implicit cmp: Ordering[B]): JsValue
- Definition Classes
- IterableOnceOps
- def minByOption[B](f: (JsValue) => B)(implicit cmp: Ordering[B]): Option[JsValue]
- Definition Classes
- IterableOnceOps
- def minOption[B >: JsValue](implicit ord: Ordering[B]): Option[JsValue]
- Definition Classes
- IterableOnceOps
- final def mkString: String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(sep: String): String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(start: String, sep: String, end: String): String
- Definition Classes
- IterableOnceOps
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newSpecificBuilder: Builder[JsValue, Iterable[JsValue]]
- Attributes
- protected
- Definition Classes
- IterableFactoryDefaults → IterableOps
- def nonEmpty: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def orElse[A1 >: A, B1 >: B](or: => Either[A1, B1]): Either[A1, B1]
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Definition Classes
- Either
- def partition(p: (JsValue) => Boolean): (Iterable[JsValue], Iterable[JsValue])
- Definition Classes
- IterableOps
- def partitionMap[A1, A2](f: (JsValue) => Either[A1, A2]): (Iterable[A1], Iterable[A2])
- Definition Classes
- IterableOps
- def prettyPrint: String
- Definition Classes
- JsValue
- def product[B >: JsValue](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- def productArity: Int
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Definition Classes
- Product
- def productElement(n: Int): Any
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Definition Classes
- Product
- def productElementName(n: Int): String
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Definition Classes
- Product
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def productIterator: Iterator[Any]
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Definition Classes
- Product
- def productPrefix: String
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Definition Classes
- Product
- def reduce[B >: JsValue](op: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeft[B >: JsValue](op: (B, JsValue) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeftOption[B >: JsValue](op: (B, JsValue) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceOption[B >: JsValue](op: (B, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceRight[B >: JsValue](op: (JsValue, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceRightOption[B >: JsValue](op: (JsValue, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def remove(idx: Int, count: Int): Unit
Removes the element on a given index position.
Removes the element on a given index position. It takes time linear in the buffer size.
- idx
the index which refers to the first element to delete.
- count
the number of elements to delete
- def remove(index: Int): JsValue
- def remove(key: String): Option[JsValue]
- Definition Classes
- JsValue
- def reversed: Iterable[JsValue]
- Attributes
- protected
- Definition Classes
- IterableOnceOps
- def scan[B >: JsValue](z: B)(op: (B, B) => B): Iterable[B]
- Definition Classes
- IterableOps
- def scanLeft[B](z: B)(op: (B, JsValue) => B): Iterable[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def scanRight[B](z: B)(op: (JsValue, B) => B): Iterable[B]
- Definition Classes
- IterableOps
- def selectDynamic(key: String): JsValue
- Definition Classes
- JsValue
- def size: Int
- Definition Classes
- JsArray → IterableOnceOps
- def sizeCompare(that: Iterable[_]): Int
- Definition Classes
- IterableOps
- def sizeCompare(otherSize: Int): Int
- Definition Classes
- IterableOps
- final def sizeIs: SizeCompareOps
- Definition Classes
- IterableOps
- Annotations
- @inline()
- def slice(from: Int, until: Int): Iterable[JsValue]
- Definition Classes
- IterableOps → IterableOnceOps
- def sliding(size: Int, step: Int): Iterator[Iterable[JsValue]]
- Definition Classes
- IterableOps
- def sliding(size: Int): Iterator[Iterable[JsValue]]
- Definition Classes
- IterableOps
- def span(p: (JsValue) => Boolean): (Iterable[JsValue], Iterable[JsValue])
- Definition Classes
- IterableOps → IterableOnceOps
- def splitAt(n: Int): (Iterable[JsValue], Iterable[JsValue])
- Definition Classes
- IterableOps → IterableOnceOps
- def stepper[S <: Stepper[_]](implicit shape: StepperShape[JsValue, S]): S
- Definition Classes
- IterableOnce
- def stringPrefix: String
- Attributes
- protected[this]
- Definition Classes
- Iterable
- Annotations
- @deprecatedOverriding()
- def sum[B >: JsValue](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- def swap: Either[JsArray, JsObject]
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Definition Classes
- Either
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tail: Iterable[JsValue]
- Definition Classes
- IterableOps
- def tails: Iterator[Iterable[JsValue]]
- Definition Classes
- IterableOps
- def take(n: Int): Iterable[JsValue]
- Definition Classes
- IterableOps → IterableOnceOps
- def takeRight(n: Int): Iterable[JsValue]
- Definition Classes
- IterableOps
- def takeWhile(p: (JsValue) => Boolean): Iterable[JsValue]
- Definition Classes
- IterableOps → IterableOnceOps
- def tapEach[U](f: (JsValue) => U): Iterable[JsValue]
- Definition Classes
- IterableOps → IterableOnceOps
- def to[C1](factory: Factory[JsValue, C1]): C1
- Definition Classes
- IterableOnceOps
- def toArray[B >: JsValue](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- IterableOnceOps
- final def toBuffer[B >: JsValue]: Buffer[B]
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def toIndexedSeq: IndexedSeq[JsValue]
- Definition Classes
- IterableOnceOps
- def toList: List[JsValue]
- Definition Classes
- IterableOnceOps
- def toMap[K, V](implicit ev: <:<[JsValue, (K, V)]): Map[K, V]
- Definition Classes
- IterableOnceOps
- def toOption: Option[JsArray]
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Definition Classes
- Either
- def toSeq: Seq[JsValue]
- Definition Classes
- IterableOnceOps
- def toSet[B >: JsValue]: Set[B]
- Definition Classes
- IterableOnceOps
- def toString(): String
- def toTry(implicit ev: <:<[JsObject, Throwable]): Try[JsArray]
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Definition Classes
- Either
- def toVector: Vector[JsValue]
- Definition Classes
- IterableOnceOps
- def transpose[B](implicit asIterable: (JsValue) => Iterable[B]): Iterable[Iterable[B]]
- Definition Classes
- IterableOps
- def unzip[A1, A2](implicit asPair: (JsValue) => (A1, A2)): (Iterable[A1], Iterable[A2])
- Definition Classes
- IterableOps
- def unzip3[A1, A2, A3](implicit asTriple: (JsValue) => (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
- Definition Classes
- IterableOps
- def update(index: Int, value: JsValue): JsValue
- def update(key: String, value: JsValue): JsValue
- Definition Classes
- JsValue
- def updateDynamic(index: Int)(value: JsValue): JsValue
- def updateDynamic(key: String)(value: JsValue): JsValue
- Definition Classes
- JsValue
- def view: View[JsValue]
- Definition Classes
- IterableOps
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withFilter(p: (JsValue) => Boolean): WithFilter[JsValue, Iterable]
- Definition Classes
- IterableOps
- def zip[B](that: IterableOnce[B]): Iterable[(JsValue, B)]
- Definition Classes
- IterableOps
- def zipAll[A1 >: JsValue, B](that: Iterable[B], thisElem: A1, thatElem: B): Iterable[(A1, B)]
- Definition Classes
- IterableOps
- def zipWithIndex: Iterable[(JsValue, Int)]
- Definition Classes
- IterableOps → IterableOnceOps
Shadowed Implicit Value Members
- def exists(p: (JsArray) => Boolean): Boolean
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: JsTopLevel).exists(p)
- Definition Classes
- Either
- def flatMap[A1 >: A, B1](f: (JsArray) => Either[A1, B1]): Either[A1, B1]
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: JsTopLevel).flatMap(f)
- Definition Classes
- Either
- def flatten[A1 >: A, B1](implicit ev: <:<[JsArray, Either[A1, B1]]): Either[A1, B1]
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: JsTopLevel).flatten(ev)
- Definition Classes
- Either
- def fold[C](fa: (JsObject) => C, fb: (JsArray) => C): C
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: JsTopLevel).fold(fa, fb)
- Definition Classes
- Either
- def forall(f: (JsArray) => Boolean): Boolean
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: JsTopLevel).forall(f)
- Definition Classes
- Either
- def foreach[U](f: (JsArray) => U): Unit
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: JsTopLevel).foreach(f)
- Definition Classes
- Either
- def map[B1](f: (JsArray) => B1): Either[JsObject, B1]
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: JsTopLevel).map(f)
- Definition Classes
- Either
- def productElementNames: Iterator[String]
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: JsTopLevel).productElementNames
- Definition Classes
- Product
- def toSeq: Seq[JsArray]
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: JsTopLevel).toSeq
- Definition Classes
- Either
Deprecated Value Members
- def ++:[B >: JsValue](that: IterableOnce[B]): Iterable[B]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use ++ instead of ++: for collections of type Iterable
- def /:[B](z: B)(op: (B, JsValue) => B): B
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue])./:(z)(op)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator.foldLeft instead
- final def /:[B](z: B)(op: (B, JsValue) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldLeft instead of /:
- def :\[B](z: B)(op: (JsValue, B) => B): B
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).:\(z)(op)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator.foldRight instead
- final def :\[B](z: B)(op: (JsValue, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldRight instead of :\
- def aggregate[B](z: => B)(seqop: (B, JsValue) => B, combop: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0)
aggregate
is not relevant for sequential collections. UsefoldLeft(z)(seqop)
instead.
- def collectFirst[B](f: PartialFunction[JsValue, B]): Option[B]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).collectFirst(f)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.collectFirst(...) instead
- def companion: IterableFactory[Iterable]
- Definition Classes
- IterableOps
- Annotations
- @deprecated @deprecatedOverriding() @inline()
- Deprecated
(Since version 2.13.0) Use iterableFactory instead
- def copyToBuffer(dest: Buffer[JsValue]): Unit
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).copyToBuffer(dest)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.copyToBuffer(...) instead
- final def copyToBuffer[B >: JsValue](dest: Buffer[B]): Unit
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use
dest ++= coll
instead
- def count(f: (JsValue) => Boolean): Int
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).count(f)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.count(...) instead
- def exists(f: (JsValue) => Boolean): Boolean
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).exists(f)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.exists(...) instead
- def filter(f: (JsValue) => Boolean): Iterator[JsValue]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).filter(f)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.filter(...) instead
- def find(p: (JsValue) => Boolean): Option[JsValue]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).find(p)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.find instead
- def flatMap[B](f: (JsValue) => IterableOnce[B]): IterableOnce[B]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).flatMap(f)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.flatMap instead or consider requiring an Iterable
- def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).fold(z)(op)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.fold instead
- def foldLeft[B](z: B)(op: (B, JsValue) => B): B
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).foldLeft(z)(op)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator.foldLeft instead
- def foldRight[B](z: B)(op: (JsValue, B) => B): B
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).foldRight(z)(op)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator.foldRight instead
- def forall(f: (JsValue) => Boolean): Boolean
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).forall(f)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.forall(...) instead
- def foreach[U](f: (JsValue) => U): Unit
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).foreach(f)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator.foreach(...) instead
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from JsArray toStringFormat[JsArray] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def hasDefiniteSize: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
- def isEmpty: Boolean
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).isEmpty
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.isEmpty instead
- def map[B](f: (JsValue) => B): IterableOnce[B]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).map(f)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.map instead or consider requiring an Iterable
- def max(implicit ord: Ordering[JsValue]): JsValue
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).max(ord)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.max instead
- def maxBy[B](f: (JsValue) => B)(implicit cmp: Ordering[B]): JsValue
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).maxBy(f)(cmp)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.maxBy(...) instead
- def min(implicit ord: Ordering[JsValue]): JsValue
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).min(ord)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.min instead
- def minBy[B](f: (JsValue) => B)(implicit cmp: Ordering[B]): JsValue
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).minBy(f)(cmp)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.minBy(...) instead
- def mkString: String
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).mkString
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.mkString instead
- def mkString(sep: String): String
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).mkString(sep)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.mkString instead
- def mkString(start: String, sep: String, end: String): String
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).mkString(start, sep, end)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.mkString instead
- def nonEmpty: Boolean
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).nonEmpty
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.nonEmpty instead
- def product(implicit num: Numeric[JsValue]): JsValue
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).product(num)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.product instead
- def reduce(f: (JsValue, JsValue) => JsValue): JsValue
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).reduce(f)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.reduce(...) instead
- def reduceLeft(f: (JsValue, JsValue) => JsValue): JsValue
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).reduceLeft(f)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.reduceLeft(...) instead
- def reduceLeftOption(f: (JsValue, JsValue) => JsValue): Option[JsValue]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).reduceLeftOption(f)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.reduceLeftOption(...) instead
- def reduceOption(f: (JsValue, JsValue) => JsValue): Option[JsValue]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).reduceOption(f)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.reduceOption(...) instead
- def reduceRight(f: (JsValue, JsValue) => JsValue): JsValue
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).reduceRight(f)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.reduceRight(...) instead
- def reduceRightOption(f: (JsValue, JsValue) => JsValue): Option[JsValue]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).reduceRightOption(f)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.reduceRightOption(...) instead
- final def repr: Iterable[JsValue]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use coll instead of repr in a collection implementation, use the collection value itself from the outside
- def right: RightProjection[JsObject, JsArray]
- Implicit
- This member is added by an implicit conversion from JsArray toJsTopLevel performed by method jsArrayTopLevel in smile.json.
- Definition Classes
- Either
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Either is now right-biased, use methods directly on Either
- def sameElements[B >: A](that: IterableOnce[B]): Boolean
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.sameElements instead
- def seq: JsArray.this.type
- Definition Classes
- Iterable
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Iterable.seq always returns the iterable itself
- def size: Int
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).size
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.size instead
- def sum(implicit num: Numeric[JsValue]): JsValue
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).sum(num)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.sum instead
- def to[C1](factory: Factory[JsValue, C1]): C1
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).to(factory)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.to(factory) instead
- def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).toArray(arg0)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.toArray
- def toBuffer[B >: A]: Buffer[B]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).toBuffer
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.to(ArrayBuffer) instead
- def toIndexedSeq: IndexedSeq[JsValue]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).toIndexedSeq
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.toIndexedSeq instead
- final def toIterable: Iterable[JsValue]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).toIterable
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator.to(Iterable) instead
- final def toIterable: JsArray.this.type
- Definition Classes
- Iterable → IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.7) toIterable is internal and will be made protected; its name is similar to
toList
ortoSeq
, but it doesn't copy non-immutable collections
- def toIterator: Iterator[JsValue]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).toIterator
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator instead
- final def toIterator: Iterator[JsValue]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator instead of .toIterator
- def toList: List[JsValue]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).toList
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.to(List) instead
- def toMap[K, V](implicit ev: <:<[JsValue, (K, V)]): Map[K, V]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).toMap(ev)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.to(Map) instead
- def toSeq: Seq[JsValue]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).toSeq
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator.to(Seq) instead
- def toSet[B >: A]: Set[B]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).toSet
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator.to(Set) instead
- def toStream: Stream[JsValue]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).toStream
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator.to(LazyList) instead
- final def toStream: Stream[JsValue]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .to(LazyList) instead of .toStream
- final def toTraversable: Traversable[JsValue]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).toTraversable
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator.to(Iterable) instead
- final def toTraversable: Traversable[JsValue]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) toTraversable is internal and will be made protected; its name is similar to
toList
ortoSeq
, but it doesn't copy non-immutable collections
- def toVector: Vector[JsValue]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).toVector
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator.to(Vector) instead
- def view(from: Int, until: Int): View[JsValue]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .view.slice(from, until) instead of .view(from, until)
- def withFilter(f: (JsValue) => Boolean): Iterator[JsValue]
- Implicit
- This member is added by an implicit conversion from JsArray toIterableOnceExtensionMethods[JsValue] performed by method iterableOnceExtensionMethods in scala.collection.IterableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(jsArray: IterableOnceExtensionMethods[JsValue]).withFilter(f)
- Definition Classes
- IterableOnceExtensionMethods
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .iterator.withFilter(...) instead
- def →[B](y: B): (JsArray, B)
- Implicit
- This member is added by an implicit conversion from JsArray toArrowAssoc[JsArray] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.
JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages,
JSON has only types of string, number, boolean, object, array, and null. This library includes additional types such as date, int, long, double, counter, binary, UUID, ObjectId (as in BSON), etc.
It is very easy to parse a JSON object:
The interpolator
json
parse a string toJsObject
. To parse an array, use the interpolatorjsan
toJsArray
. It is also okay to embed variable references directly in processed string literals.If the string is not a JSON object but any other valid JSON expression, one may use parseJson method to convert the string to a
JsValue
."1".parseJson
The json interpolator can only be applied to string literals. If you want to parse a string variable, the
parseJson
method can always be employed. If you know the string contains a JSON object, you may also use the methodparseJsObject
.To serialize a JSON value (of type JsValue) in compact mode, you can just use
toString
. To pretty print, use the methodprettyPrint
.With a
JsObject
orJsArray
, you can refer to the individual elements with a variation of array syntax, like this:Note that we follow Scala's array access convention by
()
rather than[]
in JavaScript.Besides, you can use the dot notation to access its fields/elements just like in JavaScript:
doc.store.bicycle.color doc.store.book(0).author
It is worth noting that we didn't define the type/schema of the document while Scala is a strong type language. In other words, we have both the type safe features of strong type language and the flexibility of dynamic language in this JSON library.
If you try to access a non-exist field,
JsUndefined
is returned.Although there are already several nice JSON libraries for Scala, the JSON objects are immutable by design, which is a natural choice for a functional language. For database, however, data mutation is necessary. Therefore,
JsObject
andJsArray
are mutable data structures. You can set/add a field just like in JavaScript:json.store.bicycle.color = "green"
To delete a field from
JsObject
, use remove method:It is same as setting it
JsUndefined
:doc.store.book(0).price = `JsUndefined`
To delete an element from
JsArray
, the remove method will effectively remove it from the array. However, setting an element to undefined doesn't reduce the array size.It is also possible to append an element or another array to
JsArray
:Common iterative operations such as
foreach
,map
,reduce
can be applied toJsArray
too.doc.store.book.asInstanceOf[JsArray].foreach { book => println(book.price) }
Because Scala is a static language, it is impossible to know
doc.store.book
is an array at compile time. So it is typed as genericJsValue
, which is the parent type of specific JSON data types. Therefore, we useasInstanceOf[JsArray]
to convert it toJsArray
in order to useforeach
.