editByPath

fun editByPath(fromPath: List<Int>, toPath: List<Int>, vararg contents: JsonTree.TreeNode, splitLevel: Int = 0)

Edits this tree with the given node and path.

Throws

with ErrInvalidArgument if an edit boundary resolves to an out-of-range text split offset (a document whose history carries a duplicate tree node ID), splits a UTF-16 surrogate pair, or contents holds a lone surrogate half.