pub fn encode_journal(journal: &Journal) -> StringExpand description
What:
The JSON text of one journal, with the incumbent’s key order and a final line feed.
Why:
The incumbent reads these bytes, so the order and spelling must match its JSON.stringify output.
In TS you’d write (pseudocode):
`${JSON.stringify(serializedRecord)}\n`