safe_open_json

safe_open_json(path_or_url: str | Path | TextIO, *, encoding: str | None = None, newline: str | None = None) Any[source]

Safely open a file and parse as JSON.