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

only skip hash keys sorting for actually tied hashes #42

wants to merge 1 commit into from


Copy link

As of version 2.25, JSON::XS announced that it won't sort tied hashes under the 'canonical' option. But it's implementation covered too broad range of magic - SvRMAGICAL is set for any magic other then mg_get/mg_set upon cast.

It was discovered in the garu/Data-Printer#75 issue that the core module Hash::Util::FieldHash can easily produce hashes that won't be sorted by JSON::XS::encode_json despite being not tie'd.

@rurban rurban self-assigned this Nov 25, 2015
@rurban rurban added the bug label Nov 25, 2015
@rurban rurban added this to the Next Release milestone Nov 25, 2015
Copy link

rurban commented Nov 25, 2015

Testing in branch pr42-SvRMAGICAL

Copy link

rurban commented Nov 26, 2015

Rebased into release 3.0201

@rurban rurban closed this Nov 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants