ArrayEach correct behaviour #262
Copy link
Copy link
Closed
Description
Activity
I have the same problem. I need to stop the iteration on callback function errors.
- added a commit that references this issue
on Jul 28, 2026 Implemented in v1.4.0 —
ArrayEachErrmirrors ObjectEach's error-returning callback pattern. Return nil to continue, an error to stop. See: https://github.com/buger/jsonparser/releases/tag/v1.4.0
Metadata
Metadata
Assignees
Labels
No labels
Thanks for the great lib, first of all.
The documentation for ArrayEach says:
However, at line 1042 the callback function is called this way:
It seems that there is no return value checked from the callback function - or I overlooked something. Could you confirm it?
I hit the issue because I do some conversion in the callback function and in case it returns err I want to stop executing the rest.