Skip to content

restore-lenient-jsonarray allow consecutive commas and insert null #1061

Open
stleary wants to merge 2 commits into
masterfrom
restore-lenient-jsonarray
Open

restore-lenient-jsonarray allow consecutive commas and insert null #1061
stleary wants to merge 2 commits into
masterfrom
restore-lenient-jsonarray

Conversation

@stleary

@stleary stleary commented Jun 15, 2026

Copy link
Copy Markdown
Owner

What problem does this code solve?
Fixes a regression: lenient parsing should allow consecutive array commas, and insert a null.
The regression was that non-strictmode was resulting in the array being truncated.
Fixes #1033

Does the code still compile with Java6?
Yes

Risks
Low

Changes to the API?
No

Will this require a new release?
No

Should the documentation be updated?
No

Does it break the unit tests?
No, a new unit test was added. Tested in both regular and strict mode

Was any code refactored in this commit?
No

Review status
APPROVED - By myself

Starting 3-day comment window

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consecutive comma handling in JSONArray breaks lenient parsing in 20251224

1 participant