pruned

fun pruned(written: JsonNode, shown: JsonNode): CommandBodyJson.Pruned

shown, a body as Wow's JSON writes it, pruned to the paths of written, the same body as this writer writes it: what the body's class reads, each value as Wow's JSON wrote it (Pruned.tree). It never takes a value from written: a path only written holds is the constant null in the tree, so a write-only value is never in it, and a write-only value that held null reads back as null, not as its default. Paths are compared below the same paths, so a write-only value is found wherever it is held, below a value of a shape no schema states included.