All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.copperleaf.json.pointer.AbstractJsonPointer.kt Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
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