(path: FilePath, skip: bool = False)
Read a .jsonl file or standard input and yield contents line by line.
    Blank lines will always be skipped.

    path (FilePath): The file path. "-" for reading from stdin.
    skip (bool): Skip broken lines and don't raise ValueError.
    YIELDS (JSONOutput): The loaded JSON contents of each line.
Read a .jsonl file or standard input and yield contents line by line.
    Blank lines will always be skipped.
Read a . jsonl file or standard input and yield contents line by line . Blank lines will always be skipped .
def read_jsonl(path: FilePath, skip: bool = False) -> Iterable[JSONOutput]:
    """Read a .jsonl file or standard input and yield contents line by line.
    Blank lines will always be skipped.

    path (FilePath): The file path. "-" for reading from stdin.
    skip (bool): Skip broken lines and don't raise ValueError.
    YIELDS (JSONOutput): The loaded JSON contents of each line.
    """
    if path == "-":  # reading from sys.stdin
        for line in _yield_json_lines(sys.stdin, skip=skip):
            yield line
    else:
        file_path = force_path(path)
        with file_path.open("r", encoding="utf8") as f:
            for line in _yield_json_lines(f, skip=skip):
                yield line
def read_jsonl ( path : FilePath , skip : bool = False ) -> Iterable [ JSONOutput ] : if path == "-" : # reading from sys.stdin for line in _yield_json_lines ( sys . stdin , skip = skip ) : yield line else : file_path = force_path ( path ) with file_path . open ( "r" , encoding = "utf8" ) as f : for line in _yield_json_lines ( f , skip = skip ) : yield line