Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java implementation of JSON.pretty_generate generates different output to MRI for at least an empty hash #440

Closed
chrisseaton opened this issue Jul 28, 2020 · 3 comments

Comments

@chrisseaton
Copy link
Contributor

From jruby/jruby#6338.

require 'json'
puts JSON.pretty_generate({})
% chruby 2.5.7
% ruby -v test.rb 
ruby 2.5.7p206 (2019-10-01 revision 67816) [x86_64-darwin19]
{
}
% chruby jruby 9.2.11.1
% ruby -v test.rb
jruby 9.2.11.1 (2.5.7) 2020-03-25 b1f55b1a40 OpenJDK 64-Bit Server VM 25.252-b14 on 1.8.0_252-b14 +jit [darwin-x86_64]
{

}
@hsbt
Copy link
Member

hsbt commented Jul 29, 2020

What's version of json gem?

@chrisseaton
Copy link
Contributor Author

I think it's 2.3.0 - if I'm understanding the JRuby build system correctly.

@hsbt
Copy link
Member

hsbt commented Oct 20, 2020

Can we close this?

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

No branches or pull requests

2 participants