c

play.api.libs.json

JsLookup

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

Instance Constructors

  1. new JsLookup(result: JsLookupResult)

Value Members

  1. 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.

  2. def \(index: Int): JsLookupResult

    Access a value of this array.

    Access a value of this array.

    index

    Element index

  3. 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

  4. def apply(fieldName: String): JsValue

    Access a value of this array.

    Access a value of this array.

    fieldName

    Element index.

  5. def apply(index: Int): JsValue

    Access a value of this array.

    Access a value of this array.

    index

    Element index.

  6. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  7. def head: JsLookupResult

    Access the head of this array.

  8. def last: JsLookupResult

    Access the last element of this array.

  9. def productElementNames: Iterator[String]
    Definition Classes
    Product
  10. val result: JsLookupResult
  11. def tail: JsLookupResult

    Access the tail of this array.