Skip to content

JSON::Coder callback now recieve a second argument to mark object keys#864

Merged
byroot merged 2 commits intoruby:masterfrom
byroot:as-json-key
Sep 18, 2025
Merged

JSON::Coder callback now recieve a second argument to mark object keys#864
byroot merged 2 commits intoruby:masterfrom
byroot:as-json-key

Conversation

@byroot
Copy link
Copy Markdown
Member

@byroot byroot commented Sep 18, 2025

e.g.

{ 1 => 2 }

The callback will be invoked for 1 as while it has a native JSON equivalent, it's not legal as an object name.

TODO: update the JRUby and Truffle implementations.

e.g.
```ruby
{ 1 => 2 }
```

The callback will be invoked for `1` as while it has a native JSON
equivalent, it's not legal as an object name.
@byroot byroot merged commit 3a98832 into ruby:master Sep 18, 2025
35 checks passed
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.

1 participant