Skip to content

GH-3936: Check for trailing comma in JSON arrays for vars and bindings#3937

Open
afs wants to merge 1 commit into
apache:mainfrom
afs:json-array-comma
Open

GH-3936: Check for trailing comma in JSON arrays for vars and bindings#3937
afs wants to merge 1 commit into
apache:mainfrom
afs:json-array-comma

Conversation

@afs
Copy link
Copy Markdown
Member

@afs afs commented May 22, 2026

GitHub issue resolved #3936

Pull request Description: as issue.

Trailing comma in head array can be a warning - it still finds the right variables - but a trailing comma in a result row does not show up so easily (it's a GSON syntax error) so that has to be a parsing error.

This PR does gives more relevant task-centric exception messages, not exceptions from deep inside GSON.

cc @Aklakan


  • Tests are included.
  • Commits have been squashed to remove intermediate development commit messages.
  • Key commit messages start with the issue number (GH-xxxx)

By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the Contributor's Agreement.

@afs afs force-pushed the json-array-comma branch from b4b80b7 to 922983f Compare May 22, 2026 13:10
@afs afs force-pushed the json-array-comma branch from 922983f to 71b7cd9 Compare May 25, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve the JSON SPARQL results reader behaviour for arrays with trailing commas.

1 participant