Skip to main content

parse_receipt_jsonl

Function parse_receipt_jsonl 

Source
pub fn parse_receipt_jsonl(text: &str) -> Result<Vec<Trace>, String>
Expand description

Parse a JSONL receipt export (one Trace per line) back into traces, for offline verification. Blank lines are skipped; a malformed line fails loudly with its line number.

ยงErrors

Returns the 1-based line number and parse error of the first unparseable line.