Packages

final case class JsObj(bindings: Map[String, JsValue] = HashMap.empty) extends AbstractJsObj with Traversable[(String, JsValue)] with Json[JsObj] with Product with Serializable

represents an immutable Json object. There are several ways of creating a Json object, 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.
bindings

immutable map of JsValue

Linear Supertypes
Serializable, Serializable, Product, Equals, Json[JsObj], JsValue, Traversable[(String, JsValue)], GenTraversable[(String, JsValue)], GenericTraversableTemplate[(String, JsValue), Traversable], TraversableLike[(String, JsValue), Traversable[(String, JsValue)]], GenTraversableLike[(String, JsValue), Traversable[(String, JsValue)]], Parallelizable[(String, JsValue), ParIterable[(String, JsValue)]], TraversableOnce[(String, JsValue)], GenTraversableOnce[(String, JsValue)], FilterMonadic[(String, JsValue), Traversable[(String, JsValue)]], HasNewBuilder[(String, JsValue), Traversable[(String, JsValue)]], AbstractJsObj, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsObj
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Json
  7. JsValue
  8. Traversable
  9. GenTraversable
  10. GenericTraversableTemplate
  11. TraversableLike
  12. GenTraversableLike
  13. Parallelizable
  14. TraversableOnce
  15. GenTraversableOnce
  16. FilterMonadic
  17. HasNewBuilder
  18. AbstractJsObj
  19. AnyRef
  20. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsObj(bindings: Map[String, JsValue] = HashMap.empty)

    bindings

    immutable map of JsValue

Type Members

  1. type Self = Traversable[(String, 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 >: (String, JsValue), That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Traversable[(String, JsValue)], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  4. def ++:[B >: (String, JsValue), That](that: Traversable[B])(implicit bf: CanBuildFrom[Traversable[(String, JsValue)], B, That]): That
    Definition Classes
    TraversableLike
  5. def ++:[B >: (String, JsValue), That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Traversable[(String, 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, (String, JsValue)) ⇒ B, combop: (B, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  11. def apply(key: String): JsValue

    Retrieves the value which is associated with the given key.

    Retrieves the value which is associated with the given key. If there is no mapping from the given key to a value, JsNothing is returned.

    key

    the key

    returns

    the value associated with the given key

  12. 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
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  15. def collect[B, That](pf: PartialFunction[(String, JsValue), B])(implicit bf: CanBuildFrom[Traversable[(String, JsValue)], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  16. def collectFirst[B](pf: PartialFunction[(String, JsValue), B]): Option[B]
    Definition Classes
    TraversableOnce
  17. def companion: GenericCompanion[Traversable]
    Definition Classes
    Traversable → GenTraversable → GenericTraversableTemplate
  18. def concat(other: JsObj): JsObj
    Annotations
    @tailrec()
  19. def containsKey(key: String): Boolean

    Tests whether this json object contains a binding for a key.

    Tests whether this json object contains a binding for a key.

    key

    the key

    returns

    true if there is a binding for key in this map, false otherwise.

  20. 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
  21. def copyToArray[B >: (String, JsValue)](xs: Array[B], start: Int, len: Int): Unit
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  22. def copyToArray[B >: (String, JsValue)](xs: Array[B]): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  23. def copyToArray[B >: (String, JsValue)](xs: Array[B], start: Int): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  24. def copyToBuffer[B >: (String, JsValue)](dest: Buffer[B]): Unit
    Definition Classes
    TraversableOnce
  25. def count(p: ((String, JsValue)) ⇒ Boolean): Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  26. def drop(n: Int): Traversable[(String, JsValue)]
    Definition Classes
    TraversableLike → GenTraversableLike
  27. def dropWhile(p: ((String, JsValue)) ⇒ Boolean): Traversable[(String, JsValue)]
    Definition Classes
    TraversableLike → GenTraversableLike
  28. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def equals(that: Any): Boolean
    Definition Classes
    JsObj → Equals → AnyRef → Any
  30. def exists(p: ((String, JsValue)) ⇒ Boolean): Boolean
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  31. def filter(p: (String, JsValue) ⇒ Boolean): JsObj
  32. def filter(p: ((String, JsValue)) ⇒ Boolean): Traversable[(String, JsValue)]
    Definition Classes
    TraversableLike → GenTraversableLike
  33. def filterAll(p: (JsPrimitive) ⇒ Boolean): JsObj
    Definition Classes
    AbstractJsObj
  34. def filterAll(p: (JsPath, JsPrimitive) ⇒ Boolean): JsObj

    Selects all elements of this Json object which satisfy a predicate.

    Selects all elements of this Json object which satisfy a predicate.

    returns

    a new Json object consisting of all elements of this Json object that satisfy the given predicate p. The order of the elements is preserved.

    Definition Classes
    AbstractJsObj
  35. def filterAllJsObj(p: (JsObj) ⇒ Boolean): JsObj
    Definition Classes
    AbstractJsObj
  36. def filterAllJsObj(p: (JsPath, JsObj) ⇒ Boolean): JsObj
    Definition Classes
    AbstractJsObj
  37. def filterAllKeys(p: (String) ⇒ Boolean): JsObj
    Definition Classes
    AbstractJsObj
  38. def filterAllKeys(p: (JsPath, JsValue) ⇒ Boolean): JsObj
    Definition Classes
    AbstractJsObj
  39. def filterNot(p: ((String, JsValue)) ⇒ Boolean): Traversable[(String, JsValue)]
    Definition Classes
    TraversableLike → GenTraversableLike
  40. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  41. def find(p: ((String, JsValue)) ⇒ Boolean): Option[(String, JsValue)]
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  42. def flatMap[B, That](f: ((String, JsValue)) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Traversable[(String, JsValue)], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  43. def flatten: Stream[(JsPath, JsValue)]

    Flatten this Json object into a Stream of pairs of (JsPath,JsValue) traversing recursively every noe-empty Json found along the way.

    Flatten this Json object into a Stream of pairs of (JsPath,JsValue) traversing recursively every noe-empty Json found along the way.

    returns

    a Stream of pairs of JsPath and JsValue

    Definition Classes
    JsObjJson
  44. def flatten[B](implicit asTraversable: ((String, JsValue)) ⇒ GenTraversableOnce[B]): Traversable[B]
    Definition Classes
    GenericTraversableTemplate
  45. def fold[A1 >: (String, JsValue)](z: A1)(op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  46. def foldLeft[B](z: B)(op: (B, (String, JsValue)) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  47. def foldRight[B](z: B)(op: ((String, JsValue), B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  48. def forall(p: ((String, JsValue)) ⇒ Boolean): Boolean
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  49. def foreach[U](f: ((String, JsValue)) ⇒ U): Unit
    Definition Classes
    JsObj → GenericTraversableTemplate → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  50. def genericBuilder[B]: Builder[B, Traversable[B]]
    Definition Classes
    GenericTraversableTemplate
  51. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  52. def groupBy[K](f: ((String, JsValue)) ⇒ K): Map[K, Traversable[(String, JsValue)]]
    Definition Classes
    TraversableLike → GenTraversableLike
  53. def hasDefiniteSize: Boolean
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  54. def head: (String, JsValue)

    Selects the next element of the iterator of this Json object, throwing a NoSuchElementException if the Json object is empty

    Selects the next element of the iterator of this Json object, throwing a NoSuchElementException if the Json object is empty

    returns

    the next element of the iterator of this Json object.

    Definition Classes
    JsObj → GenericTraversableTemplate → TraversableLike → GenTraversableLike
  55. def headOption: Option[(String, JsValue)]

    Optionally selects the next element of the iterator of this Json object.

    Optionally selects the next element of the iterator of this Json object.

    returns

    the first element of this Json object if it is nonempty. None if it is empty.

    Definition Classes
    JsObj → TraversableLike → GenTraversableLike
  56. 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
    JsObjJsValue
  57. def init: JsObj

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

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

    Definition Classes
    JsObjJson → TraversableLike → GenTraversableLike
  58. def inits: Iterator[Traversable[(String, JsValue)]]
    Definition Classes
    TraversableLike
  59. def insert(path: JsPath, value: JsValue, padWith: JsValue = JsNull): JsObj

    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
    JsObjJson
  60. def isArr: Boolean

    returns true if this is an array

    returns true if this is an array

    Definition Classes
    JsObjJsValue
  61. 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
  62. def isBigDec: Boolean

    returns true if this is a big decimal.

    returns true if this is a big decimal.

    Definition Classes
    JsonJsValue
  63. def isBigInt: Boolean

    returns true if this is a big integer.

    returns true if this is a big integer.

    Definition Classes
    JsonJsValue
  64. def isBool: Boolean

    returns true if this is a boolean

    returns true if this is a boolean

    Definition Classes
    JsonJsValue
  65. 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
  66. 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
  67. def isDouble: Boolean

    returns true if this is a double

    returns true if this is a double

    Definition Classes
    JsonJsValue
  68. 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
  69. def isEmpty: Boolean

    Tests whether the Json object is empty.

    Tests whether the Json object is empty.

    returns

    true if the Json object contains no elements, false otherwise.

    Definition Classes
    JsObjJson → GenericTraversableTemplate → TraversableLike → TraversableOnce → GenTraversableOnce
  70. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  71. 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
  72. 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
  73. 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
  74. 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
  75. 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
  76. 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
  77. 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
  78. 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
  79. def isNotEmpty: Boolean
    Definition Classes
    Json
  80. 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
  81. def isNotNull: Boolean

    returns true if this is not null

    returns true if this is not null

    Definition Classes
    JsValue
  82. def isNotNumber: Boolean

    returns true if this is not a number

    returns true if this is not a number

    Definition Classes
    JsValue
  83. def isNothing: Boolean

    returns true if this is JsNothing

    returns true if this is JsNothing

    Definition Classes
    JsonJsValue
  84. def isNull: Boolean

    returns true if this is JsNull

    returns true if this is JsNull

    Definition Classes
    JsonJsValue
  85. def isNumber: Boolean

    returns true if this is a number

    returns true if this is a number

    Definition Classes
    JsonJsValue
  86. def isObj: Boolean

    returns true if this is an object

    returns true if this is an object

    Definition Classes
    JsObjJsValue
  87. 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
  88. def isPrimitive: Boolean

    returns true is this is a primitive type

    returns true is this is a primitive type

    Definition Classes
    JsonJsValue
  89. def isStr: Boolean

    returns true if this is a string

    returns true if this is a string

    Definition Classes
    JsonJsValue
  90. 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
  91. final def isTraversableAgain: Boolean
    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  92. def iterator: Iterator[(String, JsValue)]

    Returns an iterator of this Json object.

    Returns an iterator of this Json object. Can be used only once

    returns

    an iterator

  93. def keySet: Set[String]

    Collects all keys of this map in a set.

    Collects all keys of this map in a set.

    returns

    a set containing all keys of this map.

  94. def keys: Iterable[String]

    Collects all keys of this Json object in an iterable collection.

    Collects all keys of this Json object in an iterable collection.

    returns

    the keys of this Json object as an iterable.

  95. def last: (String, JsValue)

    Selects the last element of the iterator of this Json object, throwing a NoSuchElementException if the Json object is empty

    Selects the last element of the iterator of this Json object, throwing a NoSuchElementException if the Json object is empty

    returns

    the last element of the iterator of this Json object.

    Definition Classes
    JsObj → TraversableLike → GenTraversableLike
  96. def lastOption: Option[(String, JsValue)]

    Optionally selects the last element of the iterator of this Json object.

    Optionally selects the last element of the iterator of this Json object.

    returns

    the last element of the iterator of this Json object, None if it is empty.

    Definition Classes
    JsObj → TraversableLike → GenTraversableLike
  97. def map[B, That](f: ((String, JsValue)) ⇒ B)(implicit bf: CanBuildFrom[Traversable[(String, JsValue)], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  98. def map(m: (String, JsValue) ⇒ JsValue, p: (String, JsValue) ⇒ Boolean = (_, _) => true): JsObj
    Definition Classes
    AbstractJsObj
  99. def mapAll(m: (JsPath, JsPrimitive) ⇒ JsValue, p: (JsPath, JsPrimitive) ⇒ Boolean = (_, _) => true): JsObj
    Definition Classes
    AbstractJsObj
  100. def mapAll(m: (JsPrimitive) ⇒ JsValue): JsObj
    Definition Classes
    AbstractJsObj
  101. def mapAllKeys(m: (String) ⇒ String): JsObj
    Definition Classes
    AbstractJsObj
  102. def mapAllKeys(m: (JsPath, JsValue) ⇒ String, p: (JsPath, JsValue) ⇒ Boolean = (_, _) => true): JsObj
    Definition Classes
    AbstractJsObj
  103. def mapKeys(m: (String, JsValue) ⇒ String, p: (String, JsValue) ⇒ Boolean = (_, _) => true): JsObj
    Definition Classes
    AbstractJsObj
  104. def max[B >: (String, JsValue)](implicit cmp: Ordering[B]): (String, JsValue)
    Definition Classes
    TraversableOnce → GenTraversableOnce
  105. def maxBy[B](f: ((String, JsValue)) ⇒ B)(implicit cmp: Ordering[B]): (String, JsValue)
    Definition Classes
    TraversableOnce → GenTraversableOnce
  106. def min[B >: (String, JsValue)](implicit cmp: Ordering[B]): (String, JsValue)
    Definition Classes
    TraversableOnce → GenTraversableOnce
  107. def minBy[B](f: ((String, JsValue)) ⇒ B)(implicit cmp: Ordering[B]): (String, JsValue)
    Definition Classes
    TraversableOnce → GenTraversableOnce
  108. def mkString: String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  109. def mkString(sep: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  110. def mkString(start: String, sep: String, end: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  111. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  112. def newBuilder: Builder[(String, JsValue), Traversable[(String, JsValue)]]
    Attributes
    protected[this]
    Definition Classes
    GenericTraversableTemplate → HasNewBuilder
  113. 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
    JsObjJson → TraversableOnce → GenTraversableOnce
  114. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  115. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  116. def par: ParIterable[(String, JsValue)]
    Definition Classes
    Parallelizable
  117. def parCombiner: Combiner[(String, JsValue), ParIterable[(String, JsValue)]]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  118. def partition(p: ((String, JsValue)) ⇒ Boolean): (Traversable[(String, JsValue)], Traversable[(String, JsValue)])
    Definition Classes
    TraversableLike → GenTraversableLike
  119. def product[B >: (String, JsValue)](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  120. def reduce[A1 >: (String, JsValue)](op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  121. def reduceAll[V](p: (JsPath, JsPrimitive) ⇒ Boolean = (_, _) => true, m: (JsPath, JsPrimitive) ⇒ V, r: (V, V) ⇒ V): Option[V]
    Definition Classes
    AbstractJsObj
  122. def reduceLeft[B >: (String, JsValue)](op: (B, (String, JsValue)) ⇒ B): B
    Definition Classes
    TraversableOnce
  123. def reduceLeftOption[B >: (String, JsValue)](op: (B, (String, JsValue)) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  124. def reduceOption[A1 >: (String, JsValue)](op: (A1, A1) ⇒ A1): Option[A1]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  125. def reduceRight[B >: (String, JsValue)](op: ((String, JsValue), B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  126. def reduceRightOption[B >: (String, JsValue)](op: ((String, JsValue), B) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  127. def remove(path: JsPath): JsObj

    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
    JsObjJson
  128. def removeAll(xs: TraversableOnce[JsPath]): JsObj

    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
    JsObjJson
  129. def repr: Traversable[(String, JsValue)]
    Definition Classes
    TraversableLike → GenTraversableLike
  130. def reversed: List[(String, JsValue)]
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  131. def scan[B >: (String, JsValue), That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Traversable[(String, JsValue)], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  132. def scanLeft[B, That](z: B)(op: (B, (String, JsValue)) ⇒ B)(implicit bf: CanBuildFrom[Traversable[(String, JsValue)], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  133. def scanRight[B, That](z: B)(op: ((String, JsValue), B) ⇒ B)(implicit bf: CanBuildFrom[Traversable[(String, 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.

  134. def seq: Traversable[(String, JsValue)]
    Definition Classes
    Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  135. 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
  136. 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
  137. def size: Int

    The size of this Json object.

    The size of this Json object. *

    returns

    the number of elements in this Json object.

    Definition Classes
    JsObjJson → GenTraversableLike → TraversableOnce → GenTraversableOnce
  138. def sizeHintIfCheap: Int
    Attributes
    protected[collection]
    Definition Classes
    GenTraversableOnce
  139. def slice(from: Int, until: Int): Traversable[(String, JsValue)]
    Definition Classes
    TraversableLike → GenTraversableLike
  140. def span(p: ((String, JsValue)) ⇒ Boolean): (Traversable[(String, JsValue)], Traversable[(String, JsValue)])
    Definition Classes
    TraversableLike → GenTraversableLike
  141. def splitAt(n: Int): (Traversable[(String, JsValue)], Traversable[(String, JsValue)])
    Definition Classes
    TraversableLike → GenTraversableLike
  142. def stringPrefix: String
    Definition Classes
    TraversableLike → GenTraversableLike
  143. def sum[B >: (String, JsValue)](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  144. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  145. def tail: JsObj

    The rest of the Json object without its first element.

    The rest of the Json object without its first element.

    Definition Classes
    JsObjJson → TraversableLike → GenTraversableLike
  146. def tails: Iterator[Traversable[(String, JsValue)]]
    Definition Classes
    TraversableLike
  147. def take(n: Int): Traversable[(String, JsValue)]
    Definition Classes
    TraversableLike → GenTraversableLike
  148. def takeWhile(p: ((String, JsValue)) ⇒ Boolean): Traversable[(String, JsValue)]
    Definition Classes
    TraversableLike → GenTraversableLike
  149. def thisCollection: Traversable[(String, JsValue)]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  150. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, (String, JsValue), Col[(String, JsValue)]]): Col[(String, JsValue)]
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  151. def toArray[B >: (String, JsValue)](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  152. def toBuffer[B >: (String, JsValue)]: Buffer[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  153. def toCollection(repr: Traversable[(String, JsValue)]): Traversable[(String, JsValue)]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  154. def toIndexedSeq: IndexedSeq[(String, JsValue)]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  155. def toIterable: Iterable[(String, JsValue)]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  156. def toIterator: Iterator[(String, JsValue)]
    Definition Classes
    TraversableLike → GenTraversableOnce
  157. def toJsArray: JsArray

    Throws an UserError exception

    Throws an UserError exception

    returns

    Throws an UserError exception

    Definition Classes
    JsObjJsValue
  158. 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
  159. 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
  160. 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
  161. 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
  162. 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
  163. 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
  164. 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
  165. 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
  166. def toJsObj: JsObj

    Returns this Json object

    Returns this Json object

    returns

    this Json object as a JsObj

    Definition Classes
    JsObjJsValue
  167. def toJsPrimitive: JsPrimitive
    Definition Classes
    JsonJsValue
  168. 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
  169. def toJson: Json[_]

    Returns this Json object as a Json

    Returns this Json object as a Json

    returns

    this Json object as a Json

    Definition Classes
    JsObjJsValue
  170. def toList: List[(String, JsValue)]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  171. def toMap[T, U](implicit ev: <:<[(String, JsValue), (T, U)]): Map[T, U]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  172. 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
  173. def toSeq: Seq[(String, JsValue)]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  174. def toSet[B >: (String, JsValue)]: Set[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  175. def toStream: Stream[(String, JsValue)]
    Definition Classes
    TraversableLike → GenTraversableOnce
  176. 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
    JsObj → TraversableLike → AnyRef → Any
  177. def toTraversable: Traversable[(String, JsValue)]
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  178. def toVector: Vector[(String, JsValue)]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  179. def transpose[B](implicit asTraversable: ((String, JsValue)) ⇒ GenTraversableOnce[B]): Traversable[Traversable[B]]
    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

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

  180. def unzip[A1, A2](implicit asPair: ((String, JsValue)) ⇒ (A1, A2)): (Traversable[A1], Traversable[A2])
    Definition Classes
    GenericTraversableTemplate
  181. def unzip3[A1, A2, A3](implicit asTriple: ((String, JsValue)) ⇒ (A1, A2, A3)): (Traversable[A1], Traversable[A2], Traversable[A3])
    Definition Classes
    GenericTraversableTemplate
  182. def validate(spec: JsObjSpec): Stream[(JsPath, Invalid)]
  183. def view(from: Int, until: Int): TraversableView[(String, JsValue), Traversable[(String, JsValue)]]
    Definition Classes
    TraversableLike
  184. def view: TraversableView[(String, JsValue), Traversable[(String, JsValue)]]
    Definition Classes
    TraversableLike
  185. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  186. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  187. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  188. def withFilter(p: ((String, JsValue)) ⇒ Boolean): FilterMonadic[(String, JsValue), Traversable[(String, JsValue)]]
    Definition Classes
    TraversableLike → FilterMonadic

Deprecated Value Members

  1. def /:[B](z: B)(op: (B, (String, 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: ((String, 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 Equals

Inherited from Json[JsObj]

Inherited from JsValue

Inherited from Traversable[(String, JsValue)]

Inherited from GenTraversable[(String, JsValue)]

Inherited from GenericTraversableTemplate[(String, JsValue), Traversable]

Inherited from TraversableLike[(String, JsValue), Traversable[(String, JsValue)]]

Inherited from GenTraversableLike[(String, JsValue), Traversable[(String, JsValue)]]

Inherited from Parallelizable[(String, JsValue), ParIterable[(String, JsValue)]]

Inherited from TraversableOnce[(String, JsValue)]

Inherited from GenTraversableOnce[(String, JsValue)]

Inherited from FilterMonadic[(String, JsValue), Traversable[(String, JsValue)]]

Inherited from HasNewBuilder[(String, JsValue), Traversable[(String, JsValue)]]

Inherited from AbstractJsObj

Inherited from AnyRef

Inherited from Any

Ungrouped