Source: factory.import/ObjDataImportNdjson.py
API for importing data from NDJSON files (newline-delimited JSON).
Each line in the file must be a valid JSON object. The column list is
derived from the first non-empty line. Subsequent records may have
differing keys; missing keys are returned as empty string.
...
| Method | Signature | Description |
|---|---|---|
| prep_file | prep_file(filename: str) -> str |
No preparation needed for NDJSON files. |
| open_file | open_file(filename: str) -> None |
Opens the NDJSON file and reads the first record to establish |
| close_file | close_file() -> None |
Closes the NDJSON file handle. |
| column_list | column_list() -> list | None |
Returns the column list derived from the first record. |
| next_row | next_row() -> list | str | None |
Returns the next row as a list of values in column order. |