Class

play.api.libs.json

JsLookup

Related Doc: package json

Permalink

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
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsLookup
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyVal
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsLookup(result: JsLookupResult)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. def \(fieldName: String): JsLookupResult

    Permalink

    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.

  5. def \(index: Int): JsLookupResult

    Permalink

    Access a value of this array.

    Access a value of this array.

    index

    Element index

  6. def \\(fieldName: String): Seq[JsValue]

    Permalink

    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

  7. def apply(fieldName: String): JsValue

    Permalink

    Access a value of this array.

    Access a value of this array.

    fieldName

    Element index.

  8. def apply(index: Int): JsValue

    Permalink

    Access a value of this array.

    Access a value of this array.

    index

    Element index.

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  11. def head: JsLookupResult

    Permalink

    Access the head of this array.

  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. def last: JsLookupResult

    Permalink

    Access the last element of this array.

  14. val result: JsLookupResult

    Permalink
  15. def tail: JsLookupResult

    Permalink

    Access the tail of this array.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyVal

Inherited from Any

Ungrouped