Skip to main content

encode_journal

Function encode_journal 

Source
pub fn encode_journal(journal: &Journal) -> String
Expand 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`