Skip to content

JsonFormat not valid when no results #84

@stuarthendren

Description

@stuarthendren

Describe the bug

The JsonFormat produces {]}} if there are no results.

To Reproduce
Steps to reproduce the behavior:

Just use any query (e.g. "SELECT * WHERE { ?s ?p ?o }")) to a dataset with no data and apply the JsonFormat.

Expected behavior

It would ideally produce the expected W3C formatted result, however I realise that you can't produce the bindings with the current set up as the first result is used, but it would be good if it would at least be valid JSON so the JSON.parse doesn't throw.

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