Skip to content

Support large JSON files#16211

Merged
straight-shoota merged 1 commit intocrystal-lang:masterfrom
RX14:feature/json-i64
Oct 19, 2025
Merged

Support large JSON files#16211
straight-shoota merged 1 commit intocrystal-lang:masterfrom
RX14:feature/json-i64

Conversation

@RX14
Copy link
Member

@RX14 RX14 commented Oct 14, 2025

Use i64 internally for line/column numbers in JSON documents. To avoid breaking changes, existing accessors convert to i32, raising on overflow. New i64 accessors are added, marked experimental, and used internally.

fixes #12946

See #16144 which was the original PR, which was mis-merged and reverted.

Use i64 internally for line/column numbers in JSON documents. To avoid
breaking changes, existing accessors convert to i32, raising on
overflow. New i64 accessors are added, marked experimental, and used
internally.

Addresses crystal-lang#12946
@straight-shoota straight-shoota merged commit 7fe5ffd into crystal-lang:master Oct 19, 2025
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Arithmetic overflow when deserializing large JSON file

3 participants