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

Linear Supertypes
Serializable, Product, Equals, Json[JsObj], JsValue, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsObj
  2. Serializable
  3. Product
  4. Equals
  5. Json
  6. JsValue
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def +(path: JsPath, value: JsValue): JsObj
    Definition Classes
    Json
    Annotations
    @inline()
  4. final def +!(path: JsPath, value: JsValue, padWith: JsValue = JsNull): JsObj
    Definition Classes
    Json
    Annotations
    @inline()
  5. final def -(path: JsPath): JsObj
    Definition Classes
    Json
    Annotations
    @inline()
  6. final def --(xs: IterableOnce[JsPath]): JsObj
    Definition Classes
    Json
    Annotations
    @inline()
  7. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def apply(key: String): JsValue
  9. final def apply(path: JsPath): JsValue
    Definition Classes
    Json
  10. def array(path: JsPath): Option[JsArray]
    Definition Classes
    Json
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def asJsArray: JsArray

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

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

    isArr

    can help to that purpose.

    isArr }}}

    returns

    this value as a JsArray

    Definition Classes
    JsObjJsValue
    Exceptions thrown

    UserError if it's not an array

  13. def asJsBigDec: 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.

    isDecimal }}}

    returns

    this value as a JsBigDec

    Definition Classes
    JsonJsValue
    Exceptions thrown

    UserError if the conversion can't be done

  14. def asJsBigInt: 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.

    isIntegral }}}

    returns

    this value as a JsBigInt

    Definition Classes
    JsonJsValue
    Exceptions thrown

    UserError if the conversion can't be done

  15. def asJsBool: 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.

    isBool }}}

    returns

    this value as a JsBool

    Definition Classes
    JsonJsValue
    Exceptions thrown

    UserError if it's not a boolean

  16. def asJsDouble: 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.

    isInt || isLong || isDouble }}}

    returns

    this value as a JsDouble

    Definition Classes
    JsonJsValue
    Exceptions thrown

    UserError if the conversion can't be done

  17. def asJsInt: 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.

    isInt }}}

    returns

    this value as a JsInt

    Definition Classes
    JsonJsValue
    Exceptions thrown

    UserError if the conversion can't be done

  18. def asJsLong: JsLong

    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

    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.

    isInt || isLong }}}

    returns

    this value as a JsLong

    Definition Classes
    JsonJsValue
    Exceptions thrown

    UserError if the conversion can't be done

  19. def asJsNull: 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.

    isNull }}}

    returns

    this value as a JsNull

    Definition Classes
    JsonJsValue
    Exceptions thrown

    UserError if it's not a boolean

  20. def asJsNumber: 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 call to this function doesn't fail. The guard condition

    isNumber

    can help to that purpose.

    isNumber }}}

    returns

    this value as a JsNumber

    Definition Classes
    JsonJsValue
    Exceptions thrown

    UserError if it's not a number

  21. def asJsObj: JsObj

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

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

    isObj

    can help to that purpose.

    isObj }}}

    returns

    this value as a JsObj

    Definition Classes
    JsObjJsValue
    Exceptions thrown

    UserError if it's not an object

  22. def asJsStr: 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.

    isStr }}}

    returns

    this value as a JsStr

    Definition Classes
    JsonJsValue
    Exceptions thrown

    UserError if it's not a string

  23. def asJson: Json[_]

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

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

    isJson

    can help to that purpose.

    isJson }}}

    returns

    this value as a Json

    Definition Classes
    JsObjJsValue
    Exceptions thrown

    UserError if it's not an array or an object

  24. def bigDecimal(path: JsPath): Option[BigDecimal]
    Definition Classes
    Json
  25. def bigInt(path: JsPath): Option[BigInt]
    Definition Classes
    Json
  26. def bool(path: JsPath): Option[Boolean]
    Definition Classes
    Json
  27. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  28. def conform(specs: (String, JsObjSpec)*): Seq[String]
  29. def containsKey(key: String): Boolean
  30. def containsPath(path: JsPath): Boolean
    Definition Classes
    Json
  31. def count(p: ((JsPath, JsValue)) => Boolean = (_: (JsPath, JsValue)) => true): Int
    Definition Classes
    Json
  32. def countRec(p: ((JsPath, JsValue)) => Boolean = (_: (JsPath, JsValue)) => true): Int
    Definition Classes
    Json
  33. def double(path: JsPath): Option[Double]
    Definition Classes
    Json
  34. def empty: JsObj
    Definition Classes
    JsObjJson
  35. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. def equals(that: Any): Boolean
    Definition Classes
    JsObj → Equals → AnyRef → Any
  37. def exists(p: ((JsPath, JsValue)) => Boolean): Boolean
    Definition Classes
    Json
  38. def filter(p: (JsPath, JsValue) => Boolean): JsObj
    Definition Classes
    JsObjJson
  39. def filterJsObj(p: (JsPath, JsObj) => Boolean): JsObj
    Definition Classes
    JsObjJson
  40. def filterJsObjRec(p: (JsPath, JsObj) => Boolean): JsObj
    Definition Classes
    JsObjJson
  41. def filterKey(p: (JsPath, JsValue) => Boolean): JsObj
    Definition Classes
    JsObjJson
  42. def filterKeyRec(p: (JsPath, JsValue) => Boolean): JsObj
    Definition Classes
    JsObjJson
  43. def filterRec(p: (JsPath, JsValue) => Boolean): JsObj
    Definition Classes
    JsObjJson
  44. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  45. def get(path: JsPath): Option[JsValue]
    Definition Classes
    Json
  46. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  47. def head: (String, JsValue)
  48. def headOption(): Option[(String, JsValue)]
  49. def id: Int

    Every implementation of this trait has an unique identifier.

    Every implementation of this trait has an unique identifier.

    returns

    unique identifier of the type

    Definition Classes
    JsObjJsValue
  50. def init: JsObj
    Definition Classes
    JsObjJson
  51. def inserted(path: JsPath, value: JsValue, padWith: JsValue = JsNull): JsObj
    Definition Classes
    JsObjJson
  52. def int(path: JsPath): Option[Int]
    Definition Classes
    Json
  53. def isArr: Boolean

    returns true if this is an array

    returns true if this is an array

    Definition Classes
    JsObjJsValue
  54. 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

    predicate

    the predicate

    Definition Classes
    JsValue
  55. def isBigDec: Boolean

    returns true if this is a big decimal.

    returns true if this is a big decimal.

    returns

    true if this is a big decimal and false otherwise. If this is a double, it returns false.

    Definition Classes
    JsonJsValue
  56. def isBigDec(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

    predicate

    the predicate

    returns

    true if this is a big decimal that satisfies the predicate. If this is a double, it returns false

    Definition Classes
    JsValue
  57. def isBigInt: Boolean

    returns true if this is a big integer.

    returns true if this is a big integer.

    returns

    true if this is a big integer and false otherwise. If this is either an integer or a long, it returns false.

    Definition Classes
    JsonJsValue
  58. def isBigInt(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

    predicate

    the predicate

    returns

    true if this is a big integer that satisfies the predicate. If this is either an integer or a long, it returns false.

    Definition Classes
    JsValue
  59. def isBool: Boolean

    returns true if this is a boolean

    returns true if this is a boolean

    Definition Classes
    JsonJsValue
  60. 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
  61. def isDouble: Boolean

    returns true if this is a double

    returns true if this is a double

    Definition Classes
    JsonJsValue
  62. 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

    predicate

    the predicate

    returns

    true if this is a double that satisfies the predicate

    Definition Classes
    JsValue
  63. def isEmpty: Boolean
    Definition Classes
    JsObjJson
  64. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  65. def isInt: Boolean

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

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

    Definition Classes
    JsonJsValue
  66. 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

    predicate

    the predicate

    Definition Classes
    JsValue
  67. 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
  68. def isJson(predicate: (Json[_]) => Boolean): Boolean

    returns true if this is a json that satisfy a predicate

    returns true if this is a json that satisfy a predicate

    predicate

    the predicate

    Definition Classes
    JsValue
  69. 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
  70. 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)

    returns

    true if this is a long and false otherwise. If this is an integer, it returns false.

    Definition Classes
    JsonJsValue
  71. 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

    predicate

    the predicate

    returns

    true if this is a long that satisfies the predicate and false otherwise. If this is an integer, it returns false.

    Definition Classes
    JsValue
  72. def isNotEmpty: Boolean
    Definition Classes
    Json
  73. 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
  74. def isNotNumber: Boolean

    returns true if this is not a number

    returns true if this is not a number

    Definition Classes
    JsValue
  75. def isNothing: Boolean

    returns true if this is JsNothing

    returns true if this is JsNothing

    returns

    true if this is JsNothing, false otherwise

    Definition Classes
    JsonJsValue
  76. def isNull: Boolean

    returns true if this is JsNull

    returns true if this is JsNull

    returns

    true if this is JsNull, false otherwise

    Definition Classes
    JsonJsValue
  77. def isNumber: Boolean

    returns true if this is a number

    returns true if this is a number

    Definition Classes
    JsonJsValue
  78. def isObj: Boolean

    returns true if this is an object

    returns true if this is an object

    Definition Classes
    JsObjJsValue
  79. 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

    predicate

    the predicate

    Definition Classes
    JsValue
  80. def isStr: Boolean

    returns true if this is a string

    returns true if this is a string

    Definition Classes
    JsonJsValue
  81. 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

    predicate

    the predicate

    Definition Classes
    JsValue
  82. def keySet: Set[String]
  83. def keys: Iterable[String]
  84. def last: (String, JsValue)
  85. def lastOption: Option[(String, JsValue)]
  86. def long(path: JsPath): Option[Long]
    Definition Classes
    Json
  87. def map[J <: JsValue](m: (JsPath, JsValue) => J, p: (JsPath, JsValue) => Boolean = (_, _) => true): JsObj
    Definition Classes
    JsObjJson
  88. val map: Map[String, JsValue]
  89. def mapIfNotNothing[T](default: () => T, map: (JsValue) => T): T

    if this is JsNothing, it returns a value computed by the default supplier.

    if this is JsNothing, it returns a value computed by the default supplier. Otherwise, it returns the result of applying the map function to this.

    T

    the type of the returned value

    default

    the supplier to compute the default value

    map

    the map function

    returns

    a value of type T

    Definition Classes
    JsValue
  90. def mapIfNotNull[T](default: () => T, map: (JsValue) => T): T

    if this is JsNull, it returns a value computed by the default supplier.

    if this is JsNull, it returns a value computed by the default supplier. Otherwise, it returns the result of applying the map function to this.

    T

    the type of the returned value

    default

    the supplier to compute the default value

    map

    the map function

    returns

    a value of type T

    Definition Classes
    JsValue
  91. def mapKey(m: (JsPath, JsValue) => String, p: (JsPath, JsValue) => Boolean = (_, _) => true): JsObj
    Definition Classes
    JsObjJson
  92. def mapKeyRec(m: (JsPath, JsValue) => String, p: (JsPath, JsValue) => Boolean = (_, _) => true): JsObj
    Definition Classes
    JsObjJson
  93. def mapRec[J <: JsValue](m: (JsPath, JsValue) => J, p: (JsPath, JsValue) => Boolean = (_, _) => true): JsObj
    Definition Classes
    JsObjJson
  94. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  95. final def nonEmpty: Boolean
    Definition Classes
    Json
  96. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  97. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  98. def obj(path: JsPath): Option[JsObj]
    Definition Classes
    Json
  99. def productElementNames: Iterator[String]
    Definition Classes
    Product
  100. def reduce[V](p: (JsPath, JsValue) => Boolean = (_, _) => true, m: (JsPath, JsValue) => V, r: (V, V) => V): Option[V]
    Definition Classes
    JsObjJson
  101. def reduceRec[V](p: (JsPath, JsValue) => Boolean = (_, _) => true, m: (JsPath, JsValue) => V, r: (V, V) => V): Option[V]
    Definition Classes
    JsObjJson
  102. def removed(path: JsPath): JsObj
    Definition Classes
    JsObjJson
  103. def removedAll(xs: IterableOnce[JsPath]): JsObj
    Definition Classes
    JsObjJson
  104. def serialize: Array[Byte]
    Definition Classes
    Json
  105. def serialize(outputStream: OutputStream): () => Unit
    Definition Classes
    Json
  106. def size: Int
    Definition Classes
    JsObjJson
  107. def string(path: JsPath): Option[String]
    Definition Classes
    Json
  108. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  109. def tail: JsObj
    Definition Classes
    JsObjJson
  110. def toLazyList: LazyList[(JsPath, JsValue)]
    Definition Classes
    JsObjJson
  111. def toLazyListRec: LazyList[(JsPath, JsValue)]
    Definition Classes
    JsObjJson
  112. def toPrettyString: String
    Definition Classes
    Json
  113. def toString(): String
    Definition Classes
    JsObjJson → AnyRef → Any
  114. def updated(path: JsPath, value: JsValue): JsObj
    Definition Classes
    JsObjJson
  115. def validate(spec: JsObjSpec): LazyList[(JsPath, Invalid)]
  116. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  117. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  118. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Json[JsObj]

Inherited from JsValue

Inherited from AnyRef

Inherited from Any

Ungrouped