pub fn encode_stream_events(
input: impl Into<JsonValue>,
options: Option<EncodeOptions>,
) -> Vec<JsonStreamEvent>Expand description
Encode a JSON value into a stream of events.
This produces the same event sequence that decode_stream_sync would emit
when decoding the TOON representation of this JSON value.