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

asObjectPathOrNull

fun JsonPath<*>.asObjectPathOrNull(): JsonPath<JsonPath.Component.Key>?

Utility method to cast a JsonPath of unknown type, e.g. from a JsonPath.parse to the required type.

i.e. The first component of the returned JsonPath should be applicable to JSON objects.

Generated by Dokka
(c) Tealium 2026