Skip to main content

Module jsonl

Module jsonl 

Source
Expand description

Reading and writing the one-row-per-line JSON the tables are stored as.

Writing is not a rewrite of what was read. Blank lines are skipped on the way in and never written on the way out, and each row is re-serialized from its parsed form, so spacing within a line and the order of a row’s keys follow the row type rather than the file. Every row ends in a newline, including the last.

Functions§

parse
Deserialize one row per non-blank line. The first line that does not deserialize stops the parse and is reported by its one-based number.
serialize
Serialize one row per line, each terminated by a newline.