getClone

suspend fun <T> getClone(path: Path = AbsolutePath.ROOT): T(source)
suspend fun <T> getClone(path: String): T(source)

Returns a clone (deep copy) of the single value at path. Equivalent to:

get(path) { value -> schema(path).clone(value) }

Throws

If path contains wildcards or matches no schemas.

If path matches more than one value.

If no value matches path.