Source: factory.import/ObjDataImportJson.py
API for importing data from JSON files (array of objects).
| Method | Signature | Description |
|---|---|---|
| prep_file | prep_file(filename: str) -> str |
No preparation needed for JSON files. |
| open_file | open_file(filename: str) -> None |
Opens the JSON file and loads all records into memory. |
| close_file | close_file() -> None |
Releases loaded records from memory. |
| column_list | column_list() -> list | None |
Returns the list of column names from the JSON objects. |
| next_row | next_row() -> list | str | None |
Returns the next row as a list of values in column order. |