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

index

fun index(index: Int): JsonPath<TRoot>

Returns a new JsonPath with an additional Component.Index used to access an index in the next JSON array.

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.Index added

Parameters

index

The index used to extract the item in the json array

Generated by Dokka
(c) Tealium 2026