pelinker.io.json_files¶
Load JSON from plain UTF-8 files or gzip-compressed UTF-8 (e.g. *.json.gz).
is_gzip_file_path(path)
¶
True when path ends with .gz (gzip-wrapped payload, e.g. *.json.gz).
load_json_path(path)
¶
Parse one JSON value from a filesystem path.
If the path suffix is .gz, the file is read as UTF-8 text through gzip;
otherwise it is read as UTF-8 text from the raw file.