fn entries_to_lines(entries: &[Value]) -> StringExpand 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.