pub fn emit<T: Serialize>(code: &str, payload: &T) -> Result<(), Error>
Emit a payload to stdout as one line of JSON. Wraps shared::afdata::emit and is the single seam through which CLI subcommands produce output.
shared::afdata::emit