jsonpak
jsonpak copied to clipboard
Handle empty JsonTrees
I think the only way to handle this is to have a default field: JsonTree.nodes = @[Node(opcodeNull)] Everything else seems too much hassle. jsonpak/[parser, mapper] need adjustments. But since this allocates I will leave it as is for now, until I figure out the cost.
We have both tree.isEmpty() and newEmptyTree() this is not needed for now.