Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.data/JsonPath/Companion

Companion

object Companion

Functions

get
Link copied to clipboard
operator fun get(index: Int): JsonPath<JsonPath.Component.Index>
operator fun get(name: String): JsonPath<JsonPath.Component.Key>

Kotlin convenience method to allow expressing JsonPath items in a more succinct way:

parse
Link copied to clipboard
@JvmStatic
fun parse(path: String): JsonPath<*>

Parses a string into a JsonPath.

parseJsonListPath
Link copied to clipboard
@JvmStatic
fun parseJsonListPath(path: String): JsonListPath

Attempts to parse the given path as a JsonPath, where the root component is applicable to a JSON array and therefore extractable via an index.

parseJsonObjectPath
Link copied to clipboard
@JvmStatic
fun parseJsonObjectPath(path: String): JsonObjectPath

Attempts to parse the given path as a JsonPath, where the root component is applicable to a JSON object and therefore extractable via a key.

root
Link copied to clipboard
@JvmStatic
fun root(index: Int): JsonPath<JsonPath.Component.Index>

Starts configuring a JsonPath that should be applied to a JSON array.

@JvmStatic
fun root(key: String): JsonPath<JsonPath.Component.Key>

Starts configuring a JsonPath that should be applied to a JSON object.

Generated by Dokka
(c) Tealium 2026