Skip to content

Update documentation to match json 3.0 API - #1073

Merged
byroot merged 1 commit into
ruby:masterfrom
bquorning:update-documentation-for-json-v3
Sep 8, 2026
Merged

Update documentation to match json 3.0 API#1073
byroot merged 1 commit into
ruby:masterfrom
bquorning:update-documentation-for-json-v3

Conversation

@bquorning

Copy link
Copy Markdown
Contributor

json 3.0 changed JSON.parse to take keyword arguments instead of a positional opts Hash, so some of the documented usage would now raise ArgumentError. I have updated all such examples to use kwargs instead.

Also align documented output with what is actually produced with the current parser/generator on Ruby 4.0, plus a number of other minor changes.

json 3.0 changed `JSON.parse` to take keyword arguments instead of a
positional opts Hash, so some of the documented usage would now raise
`ArgumentError`. I have updated all such examples to use kwargs instead.

Also align documented output with what is actually produced with the
current parser/generator on Ruby 4.0, plus a number of other minor
changes.

@byroot byroot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@byroot
byroot merged commit 8bdd517 into ruby:master Sep 8, 2026
42 checks passed
@bquorning
bquorning deleted the update-documentation-for-json-v3 branch September 8, 2026 16:20
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.

2 participants