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

key

fun key(key: String): JsonPath<TRoot>

Returns a new JsonPath with an additional Component.Key used to access a key in the next JSON object.

Additional JsonPath components can be appended through the returned JsonPath via the JsonPath.key and JsonPath.index methods.

Return

A new JsonPath instance with additional Component.Key added

Parameters

key

The key name used to extract the item in the json object

Generated by Dokka
(c) Tealium 2026