def read_ndjson(path):
    """Reads an NDJSON file.

    Args:
        path: the filepath

    Returns:
        a list of JSON dicts
    """
    with open(path, "r") as f:
        with jsonlines.Reader(f) as r:
            return list(r.iter(skip_empty=True))
Reads an NDJSON file.

    Args:
        path: the filepath

    Returns:
        a list of JSON dicts
    
fiftyone/core/storage.py