Skip to content

Remove JSON depth limit in CLI encode - #648

Merged
leighmcculloch merged 2 commits into
mainfrom
code/cli-unbounded-json-depth-b122ae
Nov 25, 2026
Merged

leighmcculloch merged 2 commits into
mainfrom
code/cli-unbounded-json-depth-b122ae

Conversation

@leighmcculloch

@leighmcculloch leighmcculloch commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

What

Read JSON in the CLI encode command with no recursion depth limit.

Why

serde_json stops at 128 levels by default.

Close #628

Known limitations

Very deep input can overflow the stack instead of returning an error. This is fine in the CLI.

@leighmcculloch
leighmcculloch requested a review from a team November 25, 2026 07:50
@leighmcculloch
leighmcculloch requested review from a team and removed request for a team November 25, 2026 10:34
@leighmcculloch
leighmcculloch added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 27c7abd Nov 25, 2026
75 of 129 checks passed
@leighmcculloch
leighmcculloch deleted the code/cli-unbounded-json-depth-b122ae branch November 25, 2026 17:32
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.

XDR-JSON reader stops at serde_json's recursion limit of 128, so values the crate writes as JSON cannot be read back

2 participants