final case class JsLookup(result: JsLookupResult) extends AnyVal with Product with Serializable
A value representing the value at a particular JSON path, either an actual JSON node or undefined.
- Source
- JsLookup.scala
- Alphabetic
- By Inheritance
- JsLookup
- Serializable
- Product
- Equals
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new JsLookup(result: JsLookupResult)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def \(fieldName: String): JsLookupResult
Return the property corresponding to the fieldName, supposing we have a JsObject.
Return the property corresponding to the fieldName, supposing we have a JsObject.
- fieldName
the name of the property to look up
- returns
the resulting JsValue wrapped in a JsLookup. If the current node is not a JsObject or doesn't have the property, a JsUndefined will be returned.
- def \(index: Int): JsLookupResult
Access a value of this array.
Access a value of this array.
- index
Element index
- def \\(fieldName: String): Seq[JsValue]
Look up fieldName in the current object and all descendants.
Look up fieldName in the current object and all descendants.
- returns
the list of matching nodes
- def apply(fieldName: String): JsValue
Access a value of this array.
Access a value of this array.
- fieldName
Element index.
- def apply(index: Int): JsValue
Access a value of this array.
Access a value of this array.
- index
Element index.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def head: JsLookupResult
Access the head of this array.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def last: JsLookupResult
Access the last element of this array.
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val result: JsLookupResult
- def tail: JsLookupResult
Access the tail of this array.