Skip to content

Preserve JSON null when indexing into an array - #111

Merged
uw4 merged 1 commit into
dashjoin:mainfrom
rayokota:fix-array-null
Jun 2, 2026
Merged

Preserve JSON null when indexing into an array#111
uw4 merged 1 commit into
dashjoin:mainfrom
rayokota:fix-array-null

Conversation

@rayokota

@rayokota rayokota commented May 24, 2026

Copy link
Copy Markdown
Contributor

evaluate_filter was treating an in-bounds array element that happens to be JSON null the same as an out-of-bounds access, so a numeric predicate like $row[1] would silently drop the element instead of returning null.

Port of equivalent fix from jsonata-python

@uw4

uw4 commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

LGTM, thank you!

@uw4
uw4 merged commit 78ac71a into dashjoin:main Jun 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants