We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9426c46 commit 50d2d8eCopy full SHA for 50d2d8e
src/commonMain/kotlin/smirnov/oleg/json/pointer/extensions.kt
@@ -61,7 +61,7 @@ fun JsonPointer.relative(other: JsonPointer): JsonPointer {
61
return JsonPointer(otherValue.substringAfter(currentValue))
62
}
63
64
-fun JsonElement.at(pointer: JsonPointer): JsonElement? {
+tailrec fun JsonElement.at(pointer: JsonPointer): JsonElement? {
65
return when (pointer) {
66
is EmptyPointer -> this
67
is SegmentPointer -> {
0 commit comments