Skip to content

json_stream.loads raises StopIteration on iterables containing only whitespace #65

@DRMacIver

Description

@DRMacIver

json_stream.load([b"\t"]) raises StopIteration.

json_stream.load([]) also does this.

It's presumably correct to raise some sort of error here (as this sequence does not represent a valid JSON value) but StopIteration is probably not the intended one. ValueError would be consistent with other invalid or incomplete JSON.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions