JsonObject

org.beangle.commons.json.JsonObject
See theJsonObject companion object
class JsonObject extends Iterable[(String, Any)]

Represents a JSON object.

Attributes

Companion
object
Graph
Supertypes
trait Iterable[(String, Any)]
trait IterableFactoryDefaults[(String, Any), Iterable]
trait IterableOps[(String, Any), Iterable, Iterable[(String, Any)]]
trait IterableOnceOps[(String, Any), Iterable, Iterable[(String, Any)]]
trait IterableOnce[(String, Any)]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Constructors

def this(v: Iterable[(String, Any)])

Concrete methods

def add(key: String, value: Any): Unit
def contains(key: String): Boolean
def get(key: String): Option[Any]
def getBoolean(key: String, defaultValue: Boolean): Boolean
def getDate(key: String, defaultValue: LocalDate): LocalDate
def getDateTime(key: String, defaultValue: LocalDateTime): LocalDateTime
def getDouble(key: String, defaultValue: Double): Double
def getInstant(key: String, defaultValue: Instant): Instant
def getInt(key: String, defaultValue: Int): Int
def getLong(key: String, defaultValue: Long): Long
def getObject(key: String, defaultValue: JsonObject): JsonObject
def getString(key: String, defaultValue: String): String
override def iterator: Iterator[(String, Any)]

Attributes

Definition Classes
IterableOnce
def query(path: String): Option[Any]
def toJson: String
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Iterable -> Any
def values: Map[String, Any]

Inherited methods

final def ++[B >: (String, Any)](suffix: IterableOnce[B]): Iterable[B]

Attributes

Inherited from:
IterableOps
final def addString(b: StringBuilder): b.type

Attributes

Inherited from:
IterableOnceOps
final def addString(b: StringBuilder, sep: String): b.type

Attributes

Inherited from:
IterableOnceOps
def addString(b: StringBuilder, start: String, sep: String, end: String): b.type

Attributes

Inherited from:
IterableOnceOps
def collect[B](pf: PartialFunction[(String, Any), B]): Iterable[B]

Attributes

Inherited from:
IterableOps
def collectFirst[B](pf: PartialFunction[(String, Any), B]): Option[B]

Attributes

Inherited from:
IterableOnceOps
def concat[B >: (String, Any)](suffix: IterableOnce[B]): Iterable[B]

Attributes

Inherited from:
IterableOps
def copyToArray[B >: (String, Any)](xs: Array[B], start: Int, len: Int): Int

Attributes

Inherited from:
IterableOnceOps
def copyToArray[B >: (String, Any)](xs: Array[B], start: Int): Int

Attributes

Inherited from:
IterableOnceOps
def copyToArray[B >: (String, Any)](xs: Array[B]): Int

Attributes

Inherited from:
IterableOnceOps
def corresponds[B](that: IterableOnce[B])(p: ((String, Any), B) => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def count(p: ((String, Any)) => Boolean): Int

Attributes

Inherited from:
IterableOnceOps
def drop(n: Int): Iterable[(String, Any)]

Attributes

Inherited from:
IterableOps
def dropRight(n: Int): Iterable[(String, Any)]

Attributes

Inherited from:
IterableOps
def dropWhile(p: ((String, Any)) => Boolean): Iterable[(String, Any)]

Attributes

Inherited from:
IterableOps
override def empty: Iterable[(String, Any)]

Attributes

Definition Classes
IterableFactoryDefaults -> IterableOps
Inherited from:
IterableFactoryDefaults
def exists(p: ((String, Any)) => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def filter(pred: ((String, Any)) => Boolean): Iterable[(String, Any)]

Attributes

Inherited from:
IterableOps
def filterNot(pred: ((String, Any)) => Boolean): Iterable[(String, Any)]

Attributes

Inherited from:
IterableOps
def find(p: ((String, Any)) => Boolean): Option[(String, Any)]

Attributes

Inherited from:
IterableOnceOps
def flatMap[B](f: ((String, Any)) => IterableOnce[B]): Iterable[B]

Attributes

Inherited from:
IterableOps
def flatten[B](implicit asIterable: ((String, Any)) => IterableOnce[B]): Iterable[B]

Attributes

Inherited from:
IterableOps
def fold[A1 >: (String, Any)](z: A1)(op: (A1, A1) => A1): A1

Attributes

Inherited from:
IterableOnceOps
def foldLeft[B](z: B)(op: (B, (String, Any)) => B): B

Attributes

Inherited from:
IterableOnceOps
def foldRight[B](z: B)(op: ((String, Any), B) => B): B

Attributes

Inherited from:
IterableOnceOps
def forall(p: ((String, Any)) => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def foreach[U](f: ((String, Any)) => U): Unit

Attributes

Inherited from:
IterableOnceOps
protected def fromSpecific(coll: IterableOnce[(String, Any)]): Iterable[(String, Any)]

Attributes

Inherited from:
IterableFactoryDefaults
def groupBy[K](f: ((String, Any)) => K): Map[K, Iterable[(String, Any)]]

Attributes

Inherited from:
IterableOps
def groupMap[K, B](key: ((String, Any)) => K)(f: ((String, Any)) => B): Map[K, Iterable[B]]

Attributes

Inherited from:
IterableOps
def groupMapReduce[K, B](key: ((String, Any)) => K)(f: ((String, Any)) => B)(reduce: (B, B) => B): Map[K, B]

Attributes

Inherited from:
IterableOps
def grouped(size: Int): Iterator[Iterable[(String, Any)]]

Attributes

Inherited from:
IterableOps
def head: (String, Any)

Attributes

Inherited from:
IterableOps
def headOption: Option[(String, Any)]

Attributes

Inherited from:
IterableOps
def init: Iterable[(String, Any)]

Attributes

Inherited from:
IterableOps
def inits: Iterator[Iterable[(String, Any)]]

Attributes

Inherited from:
IterableOps
def isEmpty: Boolean

Attributes

Inherited from:
IterableOnceOps
override def isTraversableAgain: Boolean

Attributes

Definition Classes
IterableOps -> IterableOnceOps
Inherited from:
IterableOps
def iterableFactory: IterableFactory[Iterable]

Attributes

Inherited from:
Iterable
def knownSize: Int

Attributes

Inherited from:
IterableOnce
def last: (String, Any)

Attributes

Inherited from:
IterableOps
def lastOption: Option[(String, Any)]

Attributes

Inherited from:
IterableOps
def lazyZip[B](that: Iterable[B]): LazyZip2[(String, Any), B, Iterable.this.type]

Attributes

Inherited from:
Iterable
def map[B](f: ((String, Any)) => B): Iterable[B]

Attributes

Inherited from:
IterableOps
def max[B >: (String, Any)](implicit ord: Ordering[B]): (String, Any)

Attributes

Inherited from:
IterableOnceOps
def maxBy[B](f: ((String, Any)) => B)(implicit ord: Ordering[B]): (String, Any)

Attributes

Inherited from:
IterableOnceOps
def maxByOption[B](f: ((String, Any)) => B)(implicit ord: Ordering[B]): Option[(String, Any)]

Attributes

Inherited from:
IterableOnceOps
def maxOption[B >: (String, Any)](implicit ord: Ordering[B]): Option[(String, Any)]

Attributes

Inherited from:
IterableOnceOps
def min[B >: (String, Any)](implicit ord: Ordering[B]): (String, Any)

Attributes

Inherited from:
IterableOnceOps
def minBy[B](f: ((String, Any)) => B)(implicit ord: Ordering[B]): (String, Any)

Attributes

Inherited from:
IterableOnceOps
def minByOption[B](f: ((String, Any)) => B)(implicit ord: Ordering[B]): Option[(String, Any)]

Attributes

Inherited from:
IterableOnceOps
def minOption[B >: (String, Any)](implicit ord: Ordering[B]): Option[(String, Any)]

Attributes

Inherited from:
IterableOnceOps
final def mkString: String

Attributes

Inherited from:
IterableOnceOps
final def mkString(sep: String): String

Attributes

Inherited from:
IterableOnceOps
final def mkString(start: String, sep: String, end: String): String

Attributes

Inherited from:
IterableOnceOps
protected def newSpecificBuilder: Builder[(String, Any), Iterable[(String, Any)]]

Attributes

Inherited from:
IterableFactoryDefaults
def nonEmpty: Boolean

Attributes

Inherited from:
IterableOnceOps
def partition(p: ((String, Any)) => Boolean): (Iterable[(String, Any)], Iterable[(String, Any)])

Attributes

Inherited from:
IterableOps
def partitionMap[A1, A2](f: ((String, Any)) => Either[A1, A2]): (Iterable[A1], Iterable[A2])

Attributes

Inherited from:
IterableOps
def product[B >: (String, Any)](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def reduce[B >: (String, Any)](op: (B, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeft[B >: (String, Any)](op: (B, (String, Any)) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeftOption[B >: (String, Any)](op: (B, (String, Any)) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceOption[B >: (String, Any)](op: (B, B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceRight[B >: (String, Any)](op: ((String, Any), B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceRightOption[B >: (String, Any)](op: ((String, Any), B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
protected def reversed: Iterable[(String, Any)]

Attributes

Inherited from:
IterableOnceOps
def scan[B >: (String, Any)](z: B)(op: (B, B) => B): Iterable[B]

Attributes

Inherited from:
IterableOps
def scanLeft[B](z: B)(op: (B, (String, Any)) => B): Iterable[B]

Attributes

Inherited from:
IterableOps
def scanRight[B](z: B)(op: ((String, Any), B) => B): Iterable[B]

Attributes

Inherited from:
IterableOps
def size: Int

Attributes

Inherited from:
IterableOnceOps
def sizeCompare(that: Iterable[_]): Int

Attributes

Inherited from:
IterableOps
def sizeCompare(otherSize: Int): Int

Attributes

Inherited from:
IterableOps
final def sizeIs: SizeCompareOps

Attributes

Inherited from:
IterableOps
def slice(from: Int, until: Int): Iterable[(String, Any)]

Attributes

Inherited from:
IterableOps
def sliding(size: Int, step: Int): Iterator[Iterable[(String, Any)]]

Attributes

Inherited from:
IterableOps
def sliding(size: Int): Iterator[Iterable[(String, Any)]]

Attributes

Inherited from:
IterableOps
def span(p: ((String, Any)) => Boolean): (Iterable[(String, Any)], Iterable[(String, Any)])

Attributes

Inherited from:
IterableOps
override def splitAt(n: Int): (Iterable[(String, Any)], Iterable[(String, Any)])

Attributes

Definition Classes
IterableOps -> IterableOnceOps
Inherited from:
IterableOps
def stepper[S <: Stepper[_]](implicit shape: StepperShape[(String, Any), S]): S

Attributes

Inherited from:
IterableOnce
def sum[B >: (String, Any)](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def tail: Iterable[(String, Any)]

Attributes

Inherited from:
IterableOps
def tails: Iterator[Iterable[(String, Any)]]

Attributes

Inherited from:
IterableOps
def take(n: Int): Iterable[(String, Any)]

Attributes

Inherited from:
IterableOps
def takeRight(n: Int): Iterable[(String, Any)]

Attributes

Inherited from:
IterableOps
def takeWhile(p: ((String, Any)) => Boolean): Iterable[(String, Any)]

Attributes

Inherited from:
IterableOps
override def tapEach[U](f: ((String, Any)) => U): Iterable[(String, Any)]

Attributes

Definition Classes
IterableOps -> IterableOnceOps
Inherited from:
IterableOps
def to[C1](factory: Factory[(String, Any), C1]): C1

Attributes

Inherited from:
IterableOnceOps
def toArray[B >: (String, Any) : ClassTag]: Array[B]

Attributes

Inherited from:
IterableOnceOps
final def toBuffer[B >: (String, Any)]: Buffer[B]

Attributes

Inherited from:
IterableOnceOps
def toIndexedSeq: IndexedSeq[(String, Any)]

Attributes

Inherited from:
IterableOnceOps
def toList: List[(String, Any)]

Attributes

Inherited from:
IterableOnceOps
def toMap[K, V](implicit ev: (String, Any) <:< (K, V)): Map[K, V]

Attributes

Inherited from:
IterableOnceOps
def toSeq: Seq[(String, Any)]

Attributes

Inherited from:
IterableOnceOps
def toSet[B >: (String, Any)]: Set[B]

Attributes

Inherited from:
IterableOnceOps
def toVector: Vector[(String, Any)]

Attributes

Inherited from:
IterableOnceOps
def transpose[B](implicit asIterable: ((String, Any)) => Iterable[B]): Iterable[Iterable[B]]

Attributes

Inherited from:
IterableOps
def unzip[A1, A2](implicit asPair: ((String, Any)) => (A1, A2)): (Iterable[A1], Iterable[A2])

Attributes

Inherited from:
IterableOps
def unzip3[A1, A2, A3](implicit asTriple: ((String, Any)) => (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])

Attributes

Inherited from:
IterableOps
def view: View[(String, Any)]

Attributes

Inherited from:
IterableOps
def withFilter(p: ((String, Any)) => Boolean): WithFilter[(String, Any), Iterable]

Attributes

Inherited from:
IterableOps
def zip[B](that: IterableOnce[B]): Iterable[((String, Any), B)]

Attributes

Inherited from:
IterableOps
def zipAll[A1 >: (String, Any), B](that: Iterable[B], thisElem: A1, thatElem: B): Iterable[(A1, B)]

Attributes

Inherited from:
IterableOps
def zipWithIndex: Iterable[((String, Any), Int)]

Attributes

Inherited from:
IterableOps

Deprecated and Inherited methods

def ++:[B >: (String, Any)](that: IterableOnce[B]): Iterable[B]

Attributes

Deprecated
[Since version 2.13.0] Use ++ instead of ++: for collections of type Iterable
Inherited from:
IterableOps
final def /:[B](z: B)(op: (B, (String, Any)) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldLeft instead of /:
Inherited from:
IterableOnceOps
final def :\[B](z: B)(op: ((String, Any), B) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldRight instead of :\\
Inherited from:
IterableOnceOps
def aggregate[B](z: => B)(seqop: (B, (String, Any)) => B, combop: (B, B) => B): B

Attributes

Deprecated
[Since version 2.13.0] For sequential collections, prefer `foldLeft(z)(seqop)`. For parallel collections, use `ParIterableLike#aggregate`.
Inherited from:
IterableOnceOps
def companion: IterableFactory[Iterable]

Attributes

Deprecated
[Since version 2.13.0] Use iterableFactory instead
Inherited from:
IterableOps
final def copyToBuffer[B >: (String, Any)](dest: Buffer[B]): Unit

Attributes

Deprecated
[Since version 2.13.0] Use `dest ++= coll` instead
Inherited from:
IterableOnceOps
def hasDefiniteSize: Boolean

Attributes

Deprecated
[Since version 2.13.0] Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
Inherited from:
IterableOnceOps
final def repr: Iterable[(String, Any)]

Attributes

Deprecated
[Since version 2.13.0] Use coll instead of repr in a collection implementation, use the collection value itself from the outside
Inherited from:
IterableOps
def seq: Iterable.this.type

Attributes

Deprecated
[Since version 2.13.0] Iterable.seq always returns the iterable itself
Inherited from:
Iterable
final def toIterable: Iterable.this.type

Attributes

Deprecated
[Since version 2.13.7] toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
Iterable
final def toIterator: Iterator[(String, Any)]

Attributes

Deprecated
[Since version 2.13.0] Use .iterator instead of .toIterator
Inherited from:
IterableOnceOps
final def toStream: Stream[(String, Any)]

Attributes

Deprecated
[Since version 2.13.0] Use .to(LazyList) instead of .toStream
Inherited from:
IterableOnceOps
final def toTraversable: Iterable[(String, Any)]

Attributes

Deprecated
[Since version 2.13.0] toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
IterableOps
def view(from: Int, until: Int): View[(String, Any)]

Attributes

Deprecated
[Since version 2.13.0] Use .view.slice(from, until) instead of .view(from, until)
Inherited from:
IterableOps