Skip to main content

encode_stream_events

Function encode_stream_events 

Source
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.