Skip to content

Invalid JSON output when no rows #328

@gravis

Description

@gravis

sqlite-utils query generates a JSON output with the result from the query:

[{...},{...}]

If no rows are returned by the query, I'm expecting an empty JSON array:

[]

But actually I'm getting an empty string. To be consistent, the output should be [] when the request succeeds (return code == 0).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions