pub fn serialize(node: &Node) -> Result<Node, CodecError>Expand description
Serialize a typed node to its normalized-JSON wire form. $extra entries ride
as sibling fields after the modeled ones; a modeled field wins a name
collision ([JsonExtensionData] semantics). No $extra key on the wire.
Fallible since 0.4.0: an invalid $types envelope (at any depth) is a
producer bug and fails at emit time.