Skip to content

Conversation

@43081j
Copy link
Owner

@43081j 43081j commented Dec 27, 2025

Sometimes the first key is a value we actually don't output (e.g.
undefined, empty array, etc). In these cases, we end up with
&secondKey=val (i.e. the & is wrong).

This changes the logic to only set firstKey = false once we certainly
output a key.

Fixes #60

Sometimes the first key is a value we actually don't output (e.g.
`undefined`, empty array, etc). In these cases, we end up with
`&secondKey=val` (i.e. the `&` is wrong).

This changes the logic to only set `firstKey = false` once we certainly
output a key.
@43081j 43081j merged commit 8b86008 into main Dec 27, 2025
4 checks passed
@43081j 43081j deleted the empty-arrays branch December 27, 2025 13:40
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.

First removed undefined value causes issues

2 participants