Skip to main content

entries_to_lines

Function entries_to_lines 

Source
fn entries_to_lines(entries: &[Value]) -> String
Expand description

Serializes each entry as one line of JSON, newline-terminated, and concatenates them into the payload written to the socket. Pure and independent of the network so it can be unit-tested directly.