Skip to content

Document reading deeply nested XDR-JSON - #649

Merged
leighmcculloch merged 8 commits into
mainfrom
code/docs-unbounded-json-depth-c83e4e
Nov 27, 2026
Merged

leighmcculloch merged 8 commits into
mainfrom
code/docs-unbounded-json-depth-c83e4e

Conversation

@leighmcculloch

Copy link
Copy Markdown
Member

What

Document how to read XDR-JSON nested deeper than serde_json's default recursion limit.

Why

Some of the functions in the xdr library for json decoding use the default deserializer with no way to customise it, and so the crate should document the serde-json limit on nested objects. Some functions provide a way to control the limit, and so documenting that is just in general helpful given that XDR-JSON can be nested rather deep.

Close #628

Known limitations

N/A

@leighmcculloch
leighmcculloch requested a review from a team November 25, 2026 10:34
@leighmcculloch
leighmcculloch added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit ccb0c47 Nov 27, 2026
126 of 128 checks passed
@leighmcculloch
leighmcculloch deleted the code/docs-unbounded-json-depth-c83e4e branch November 27, 2026 06:47
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