Skip to content

Conversation

@rbygrave
Copy link
Contributor

@rbygrave rbygrave commented Dec 1, 2025

With arrays of arrays, the toJson content is missing a comma between the nested arrays.

The fix is in JGenerator.startArray() to add the missing comma prefix when the prior written "value" ended in a OP_END.

With arrays of arrays, the toJson content is missing a comma
between the nested arrays.

The fix is in JGenerator.startArray() to add the missing
comma prefix when the prior written "value" ended in a OP_END.
@rbygrave rbygrave requested a review from SentryMan December 1, 2025 09:41
@rbygrave rbygrave self-assigned this Dec 1, 2025
@rbygrave rbygrave linked an issue Dec 1, 2025 that may be closed by this pull request
@rbygrave rbygrave enabled auto-merge (squash) December 1, 2025 09:42
@rbygrave rbygrave added the bug Something isn't working label Dec 1, 2025
@rbygrave rbygrave added this to the 3.9 milestone Dec 1, 2025
@rbygrave rbygrave merged commit aa87a22 into main Dec 1, 2025
9 checks passed
@SentryMan SentryMan deleted the fix/464-nested-arrays-missing-comma branch December 1, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JsonArray serialization produced an incorrect result

3 participants