com.snowplowanalytics.snowplow.enrich.common.utils

JsonPath

object JsonPath

Wrapper for io.gatling.jsonpath for json4s and scalaz

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JsonPath
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. implicit class Json4sExtractor extends AnyRef

    Pimp-up JsonPath class to work with JValue Unlike query(jsonPath, json) it gives empty list on any error (like JNothing)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def compileQuery(query: String): Validation[String, JsonPath]

    Precompile JsonPath query

    Precompile JsonPath query

    query

    JsonPath query as a string

    returns

    valid JsonPath object either error message

  9. def convertToJValue(json: JValue): Validation[String, AnyRef]

    Wrapper method for not throwing an exception on JNothing, representing it as invalid JSON

    Wrapper method for not throwing an exception on JNothing, representing it as invalid JSON

    json

    JSON value, possibly JNothing

    returns

    successful POJO on any JSON except JNothing

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. def query(jsonPath: String, json: JValue): Validation[String, List[JValue]]

    Query some JSON by jsonPath It always return List, even for single match Unlike jValue.json4sQuery(stringPath) it gives error if JNothing was given

  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def wrapArray(values: List[JValue]): JValue

    Wrap list of values into JSON array if several values present Use in conjunction with query.

    Wrap list of values into JSON array if several values present Use in conjunction with query. JNothing will represent absent value

    values

    list of JSON values

    returns

    array if there's >1 values in list

Inherited from AnyRef

Inherited from Any

Ungrouped