commonMain.com.copperleaf.json.pointer.AbstractJsonPointer.kt Maven / Gradle / Ivy
package com.copperleaf.json.pointer
public data class AbstractJsonPointer(
public val tokens: List
) {
public companion object {
public fun parse(pointer: String): AbstractJsonPointer {
check(pointer.startsWith("#")) { "$pointer does not represent a URI fragment" }
val tokens = pointer.tokenizeJsonPointerString()
return AbstractJsonPointer(tokens)
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy