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

JsonListPath

typealias JsonListPath = JsonPath<JsonPath.Component.Index>

A JsonPath that can be applied to a JSON array to represent the path to a potentially nested value. Nested items can be in both JSON objects and JSON arrays.

To create a basic JsonListPath you can call JsonPath.root with an Int.

JsonPath.root(0)

// or for Kotlin users only
JsonPath[0]
Content copied to clipboard

To create a path like [0].container.array[0].property you can use a subscript for each path component:

JsonPath.root(0)
.key("container")
.key("array")
.index(0)
.key("property")

// or for Kotlin users only
JsonPath[0]["container"]["array"][0]["property"]
Content copied to clipboard
Generated by Dokka
(c) Tealium 2026