Skip to main content

encode_landing

Function encode_landing 

Source
pub fn encode_landing(record: &LandingRecord) -> String
Expand description

What: Encode landing-<n>.json with its trailing newline; optional fields are omitted when absent, as JSON.stringify omits undefined. Why: See encode_preparing.

In TS you’d write (pseudocode):

`${JSON.stringify(landing)}\n`