Skip to content

Properly handle nested arrays in json parsing#3168

Merged
coheigea merged 2 commits into
mainfrom
coheigea/json-arrays
Jun 2, 2026
Merged

Properly handle nested arrays in json parsing#3168
coheigea merged 2 commits into
mainfrom
coheigea/json-arrays

Conversation

@coheigea
Copy link
Copy Markdown
Contributor

@coheigea coheigea commented Jun 2, 2026

The issue was a bug in the JSON parser when it read arrays inside arrays.

Before the fix:

It knew how to handle objects inside a list, like [{"a":1}].
But it did not handle nested lists, like [[]] or [[1,2]].
So it tried to read the inner list as if it were a number/text value.
That caused an unexpected NumberFormatException crash.

@coheigea coheigea requested a review from reta June 2, 2026 13:19
@coheigea coheigea merged commit 2dff320 into main Jun 2, 2026
4 of 5 checks passed
@coheigea coheigea deleted the coheigea/json-arrays branch June 2, 2026 14:41
coheigea added a commit that referenced this pull request Jun 2, 2026
* Properly handle nested arrays in json parsing

* Fixup

(cherry picked from commit 2dff320)
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.

2 participants