Pruned

class Pruned(val tree: JsonNode, val writeOnly: List<String>, val unpaired: List<String>)

A body Wow's JSON wrote, pruned to what its class reads (pruned): the tree, each of whose values is the value Wow's JSON wrote at its path or the constant null, and the paths where the two writings disagree, each a path from the body (a property by its name after a ., an item by its position, lines[0].pin).

writeOnly are the values this writer writes, not null, and Wow's JSON leaves out: a write-only value that is null holds no secret. unpaired are those the two writings do not pair: an object against an array or a scalar, arrays of other sizes, a scalar that differs (a class written as an array, of which Wow's JSON leaves a write-only item out, among them); the tree holds Wow's JSON's value there, nothing pruned by guess. A computed property, which Wow's JSON writes and this writer does not, is neither: it is pruned.

Constructors

Link copied to clipboard
constructor(tree: JsonNode, writeOnly: List<String>, unpaired: List<String>)

Properties

Link copied to clipboard

Whether the two writings agree on every path this writer writes.

Link copied to clipboard
val tree: JsonNode
Link copied to clipboard
Link copied to clipboard